Skip to content

Commit

Permalink
fix(stats): use ms in uptime over seconds (#96)
Browse files Browse the repository at this point in the history
Update stats.py
  • Loading branch information
stefanlight8 authored Aug 28, 2023
1 parent 9869312 commit 8ab596a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mafic/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class NodeStats:
def __init__(self, data: Stats) -> None:
self.player_count: int = data["players"]
self.playing_player_count: int = data["playingPlayers"]
self.uptime: timedelta = timedelta(seconds=data["uptime"])
self.uptime: timedelta = timedelta(milliseconds=data["uptime"])
self.memory: MemoryStats = MemoryStats(data["memory"])
self.cpu: CPUStats = CPUStats(data["cpu"])
self.frame_stats: FrameStats | None = (
Expand Down

0 comments on commit 8ab596a

Please sign in to comment.