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 65b2611 commit f930245Copy full SHA for f930245
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", TimeSpan.FromSeconds(uptime.NextValue()).ToString("g"));
+ context.Event.SetProperty("System Uptime", DateTimeOffset.Now.Subtract(TimeSpan.FromSeconds(uptime.NextValue())));
20
}
21
22
0 commit comments