Skip to content

Commit

Permalink
Save timestamp in 24 hour format (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDesmondKing authored Jul 21, 2023
1 parent 41eea09 commit 218584f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/server_stats.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ $ServerStats = {
$perf += getPerf

$TimestampRaw = $perf[0].TimeStamp_Sys100NS
$CPUUtilizationTimestamp = [DateTime]::FromFileTimeUtc($TimestampRaw).ToString("yyyy-MM-dd hh:mm:ss")
$CPUUtilizationTimestamp = [DateTime]::FromFileTimeUtc($TimestampRaw).ToString("yyyy-MM-dd HH:mm:ss")

$pptDiff = $perf[1].PercentProcessorTime - $perf[0].PercentProcessorTime
$tsDiff = $perf[1].TimeStamp_Sys100NS - $perf[0].TimeStamp_Sys100NS
Expand Down

0 comments on commit 218584f

Please sign in to comment.