Skip to content

Commit 54db8ac

Browse files
author
Christian Roessner
committed
Fix: Update timestamp methods to use UnixMilli
Changed LastReloadTime and startTime to return Unix milliseconds instead of Unix seconds for better precision. This aligns timestamp formats across the system for consistency. Signed-off-by: Christian Roessner <[email protected]>
1 parent d170bda commit 54db8ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/stats/statistics.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func init() {
5353

5454
defer ReloadMutex.RUnlock()
5555

56-
return float64(LastReloadTime.Unix())
56+
return float64(LastReloadTime.UnixMilli())
5757
},
5858
)
5959

@@ -65,7 +65,7 @@ func init() {
6565
Help: "Unix timestamp of the application start",
6666
},
6767
func() float64 {
68-
return float64(startTime.Unix())
68+
return float64(startTime.UnixMilli())
6969
},
7070
)
7171
}

0 commit comments

Comments
 (0)