commit b00d4a6f83424b1c5558a37e9c5a6bfd3801701c
parent 44cae1e90820948ffbf91b4c7d11732f1363fb1d
Author: Kirill Primak <vyivel@eclair.cafe>
Date: Mon, 24 Oct 2022 08:45:17 +0300
rt/test: fix milliseconds formatting
Pad milliseconds with zeroes; the number is guaranteed to be in [0, 999]
range so these two checks are enough.
Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/rt/+test/run.ha b/rt/+test/run.ha
@@ -89,6 +89,11 @@ export fn tests_main() size = {
print(" tests completed in ");
print(ztos(end.0));
print(".");
+ if (end.1 < 10) {
+ print("00");
+ } else if (end.1 < 100) {
+ print("0");
+ };
print(ztos(end.1));
print("s\n");