From 22dfefab5bc931d2d6402f37873811bbcbec7402 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 24 May 2019 03:18:47 +0900 Subject: [PATCH] clock: Fix coments --- internal/clock/clock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/clock/clock.go b/internal/clock/clock.go index 8ec9b8fbf..0c79cbf6f 100644 --- a/internal/clock/clock.go +++ b/internal/clock/clock.go @@ -62,7 +62,7 @@ func calcCountFromTPS(tps int64, now int64) int { diff := now - lastSystemTime if diff < 0 { - // It is theoretically possible to change the OS clock, so now can be older than lastSystemTime. + // TODO: Should this panic? lastSystemTime = now return 0 } @@ -103,7 +103,7 @@ func updateFPSAndTPS(now int64, count int) { fpsCount++ tpsCount += count if now < lastUpdated { - // It is theoretically possible to change the OS clock, so now can be older than lastSystemTime. + // TODO: Should this panic? lastUpdated = now fpsCount = 0 tpsCount = 0