We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aee181c commit 87669eeCopy full SHA for 87669ee
Source/Samples/SampleConsole/Plugins/SystemUptimePlugin.cs
@@ -16,7 +16,7 @@ public void Run(EventPluginContext context) {
16
uptime.NextValue();
17
18
// Store the system uptime as an extended property.
19
- context.Event.SetProperty("System Uptime", DateTimeOffset.Now.Subtract(TimeSpan.FromSeconds(uptime.NextValue())));
+ context.Event.SetProperty("System Uptime", DateTimeOffset.Now.Subtract(TimeSpan.FromSeconds(uptime.NextValue())).ToString("F"));
20
}
21
22
0 commit comments