We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ccc45bf + 5ea2976 commit b1c87ebCopy full SHA for b1c87eb
core/tag.c
@@ -260,10 +260,10 @@ size_t lf_readable_time(char* buffer, instant_t time) {
260
const char* units = "nanoseconds";
261
if (time % MSEC(1) == (instant_t) 0) {
262
units = "milliseconds";
263
- time = time % MSEC(1);
+ time = time / MSEC(1);
264
} else if (time % USEC(1) == (instant_t) 0) {
265
units = "microseconds";
266
- time = time % USEC(1);
+ time = time / USEC(1);
267
}
268
size_t printed = lf_comma_separated_time(buffer, time);
269
buffer += printed;
0 commit comments