Skip to content

Commit

Permalink
Updated system uptime plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Apr 6, 2015
1 parent aee181c commit 87669ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Samples/SampleConsole/Plugins/SystemUptimePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void Run(EventPluginContext context) {
uptime.NextValue();

// Store the system uptime as an extended property.
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"));
}
}
}
Expand Down

0 comments on commit 87669ee

Please sign in to comment.