[Pkg-privacy-commits] [torbrowser-launcher] 74/476: use MiB/KiB instead of MB/KB because I personally prefer it ; )

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.

commit e1cb0b4be7a0b8547a28bb3ddcebcd45e06d7a60
Author: meejah <meejah at meejah.ca>
Date:   Mon Feb 25 15:58:38 2013 -0700

    use MiB/KiB instead of MB/KB because I personally prefer it ;)
---
 torbrowser-launcher | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/torbrowser-launcher b/torbrowser-launcher
index 3547f11..498bc66 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -293,7 +293,7 @@ class TorBrowserLauncher:
         self.progress.set_fraction(percent)
         amount = float(self.so_far)
         units = "bytes"
-        for (size, unit) in [(1000000, "MB"), (1000, "KB")]:
+        for (size, unit) in [(1024 * 1024, "MiB"), (1024, "KiB")]:
           if amount > size:
             units = unit
             amount = amount / float(size)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git



More information about the Pkg-privacy-commits mailing list