garik pushed a commit to branch master.

http://git.enlightenment.org/enlightenment/modules/places.git/commit/?id=701f72dae290f5feabf86590634f050fb89d1427

commit 701f72dae290f5feabf86590634f050fb89d1427
Author: Igor Murzov <ga...@efl.so>
Date:   Fri Jul 4 02:07:22 2014 +0400

    Display sizes >= 1TB in terse format as well.
---
 src/e_mod_places.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/e_mod_places.c b/src/e_mod_places.c
index 7891e98..d186d32 100644
--- a/src/e_mod_places.c
+++ b/src/e_mod_places.c
@@ -610,7 +610,13 @@ _places_human_size_get(unsigned long long size)
              else
                {
                   dsize /= 1024.0;
-                  suffix = "GB";
+                  if(dsize < 1024)
+                    suffix = "GB";
+                  else
+                    {
+                       dsize /= 1024.0;
+                       suffix = "TB";
+                    }
                }
           }
         snprintf(hum, sizeof(hum), "%.1f%s", dsize, suffix);

-- 


Reply via email to