Skip to content

Commit f930245

Browse files
committed
Updated the sample plugin
1 parent 65b2611 commit f930245

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", TimeSpan.FromSeconds(uptime.NextValue()).ToString("g"));
19+
context.Event.SetProperty("System Uptime", DateTimeOffset.Now.Subtract(TimeSpan.FromSeconds(uptime.NextValue())));
2020
}
2121
}
2222
}

0 commit comments

Comments
 (0)