Skip to content

Commit 134a82a

Browse files
committed
Round duration to 4 decimal places in FinishReportingEvent.as_dict()
1 parent 567cfe8 commit 134a82a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudinit/reporting/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def as_dict(self):
107107
"""The event represented as json friendly."""
108108
data = super(FinishReportingEvent, self).as_dict()
109109
data["result"] = self.result
110-
data["duration"] = self.duration
110+
data["duration"] = round(self.duration, 4)
111111
if self.post_files:
112112
data["files"] = _collect_file_info(self.post_files)
113113
return data

0 commit comments

Comments
 (0)