summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Row.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Row.c b/Row.c
index 66a4aa07..383257d9 100644
--- a/Row.c
+++ b/Row.c
@@ -425,13 +425,14 @@ void Row_printNanoseconds(RichString* str, unsigned long long totalNanoseconds,
if (totalMicroseconds < 1000000) {
len = xSnprintf(buffer, sizeof(buffer), ".%06lus ", (unsigned long)totalMicroseconds);
RichString_appendnAscii(str, baseColor, buffer, len);
+ return;
}
unsigned long long totalSeconds = totalMicroseconds / 1000000;
unsigned long microseconds = totalMicroseconds % 1000000;
if (totalSeconds < 60) {
int width = 5;
- unsigned long fraction = microseconds;
+ unsigned long fraction = microseconds / 10;
if (totalSeconds >= 10) {
width--;
fraction /= 10;