Skip to content

Commit 252ab2d

Browse files
committed
Rearranged clockhands for consistency
1 parent 40e7236 commit 252ab2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onyx/clockhands.onyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use core {printf}
22

33
main :: () {
44
for i in 0 ..= 10 {
5-
t: i32 = (i * 43200 + 21600) / 11;
5+
t: i32 = (43200 * i + 21600) / 11;
66
h, m, s: i32 = t / 3600, t % 3600 / 60, t % 60
77
printf("{w2}:{w2}:{w2}\n", 12 if h == 0 else h, m, s);
88
}

0 commit comments

Comments
 (0)