Skip to content

Commit 79b5118

Browse files
authored
uh_core: Fix incorrect time calculation resulting in spurious warning (#1663)
There are 1000 milliseconds in a second, not 100.
1 parent 352412b commit 79b5118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openhcl/underhill_core/src/emuplat/local_clock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use vmcore::save_restore::SaveRestore;
1313

1414
const NANOS_IN_SECOND: i64 = 1_000_000_000;
1515
const NANOS_100_IN_SECOND: i64 = NANOS_IN_SECOND / 100;
16-
const MILLIS_IN_TWO_DAYS: i64 = 100 * 60 * 60 * 24 * 2;
16+
const MILLIS_IN_TWO_DAYS: i64 = 1000 * 60 * 60 * 24 * 2;
1717

1818
/// Implementation of [`LocalClock`], backed a real time source on the host.
1919
///

0 commit comments

Comments
 (0)