From 70c314f2549a3f80664080efab0f25cf4a7f92d5 Mon Sep 17 00:00:00 2001 From: Jonas Holmberg Date: Thu, 8 Sep 2022 16:31:48 +0200 Subject: [PATCH] pw-top: Print microseconds as "us" Avoid unicode characters in the columns since it breaks formatting on non-unicode hosts. --- src/tools/pw-top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/pw-top.c b/src/tools/pw-top.c index 18de6dd5f..459dacb11 100644 --- a/src/tools/pw-top.c +++ b/src/tools/pw-top.c @@ -349,7 +349,7 @@ static const char *print_time(char *buf, size_t len, uint64_t val) else if (val == (uint64_t)-2) snprintf(buf, len, " +++ "); else if (val < 1000000llu) - snprintf(buf, len, "%5.1fµs", val/1000.f); + snprintf(buf, len, "%5.1fus", val/1000.f); else if (val < 1000000000llu) snprintf(buf, len, "%5.1fms", val/1000000.f); else