[Xfce4-commits] <archive:master> Round to 1 digit.

Nick Schermer noreply at xfce.org
Fri Dec 30 21:38:01 CET 2011


Updating branch refs/heads/master
         to 96f74145b5366fa7cd8af736b235f08a7e410f89 (commit)
       from e5ece6b4649077fc4181e6f7b62b3aa2394cdefc (commit)

commit 96f74145b5366fa7cd8af736b235f08a7e410f89
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Dec 30 21:37:12 2011 +0100

    Round to 1 digit.

 fancyindex/models/archive.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fancyindex/models/archive.rb b/fancyindex/models/archive.rb
index 78f828c..e791621 100644
--- a/fancyindex/models/archive.rb
+++ b/fancyindex/models/archive.rb
@@ -60,7 +60,7 @@ module Fancyindex
             size /= 1024.0
             count += 1
           end
-          format("%.0f",size) + %w(B KB MB GB TB)[count]
+          format("%.1f",size) + %w(B KB MB GB TB)[count]
         end
 
         def mtime


More information about the Xfce4-commits mailing list