Skip to content

Commit 87669ee

Browse files
committed
Updated system uptime plugin
1 parent aee181c commit 87669ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Samples/SampleConsole/Plugins/SystemUptimePlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void Run(EventPluginContext context) {
1616
uptime.NextValue();
1717

1818
// Store the system uptime as an extended property.
19-
context.Event.SetProperty("System Uptime", DateTimeOffset.Now.Subtract(TimeSpan.FromSeconds(uptime.NextValue())));
19+
context.Event.SetProperty("System Uptime", DateTimeOffset.Now.Subtract(TimeSpan.FromSeconds(uptime.NextValue())).ToString("F"));
2020
}
2121
}
2222
}

0 commit comments

Comments
 (0)