netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=9b1c395a15c7211d3127062eb7d01357e4a29bdc

commit 9b1c395a15c7211d3127062eb7d01357e4a29bdc
Author: Alastair Poole <nets...@gmail.com>
Date:   Wed Mar 31 12:25:53 2021 +0100

    units: Someone will complain...and they will be...
    
    right :)
---
 src/bin/main.c       | 4 ++--
 src/bin/ui/ui_util.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 2fc1b59..d808592 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -59,11 +59,11 @@ _background_poller_cb(void *data, Ecore_Thread *thread)
         if (file_system_in_use("ZFS"))
           ui->mem_used += memory.zfs_arc_used;
 
-        for (int i = 0; i < 8; i++)
+        for (int i = 0; i < 16; i++)
           {
              if (ecore_thread_check(thread))
                break;
-             usleep(125000);
+             usleep(62500);
           }
 
        if (cpu_time_prev)
diff --git a/src/bin/ui/ui_util.c b/src/bin/ui/ui_util.c
index 1f612bf..da06ff0 100644
--- a/src/bin/ui/ui_util.c
+++ b/src/bin/ui/ui_util.c
@@ -111,8 +111,8 @@ evisum_size_format(unsigned long long bytes)
    unsigned int precision = 2, powj = 1;
    int i = 0;
    static const char *units[8] = {
-      _("B"), _("K"), _("M"), _("G"),
-      _("T"), _("P"), _("E"), _("Z"),
+      _("B"), _("KiB"), _("MiB"), _("GiB"),
+      _("TiB"), _("PiB"), _("EiB"), _("ZiB"),
    };
 
    value = bytes;

-- 


Reply via email to