Show nice size for downloads
authorJamie Cameron <jcameron@webmin.com>
Fri, 18 Dec 2009 21:39:15 +0000 (13:39 -0800)
committerJamie Cameron <jcameron@webmin.com>
Fri, 18 Dec 2009 21:39:15 +0000 (13:39 -0800)
lang/en
web-lib-funcs.pl

diff --git a/lang/en b/lang/en
index 5aa66e8..de72f19 100644 (file)
--- a/lang/en
+++ b/lang/en
@@ -253,7 +253,7 @@ feedback_enoto=No addresses were entered to send feedback to
 feedback_ecannot=You are not allowed to send feedback
 feedback_ecannot2=You are not allowed to send feedback containing config files
 
-progress_size=Downloading $1 ($2 bytes) ..
+progress_size2=Downloading $1 ($2) ..
 progress_nosize=Downloading $1 ..
 progress_data=Received $1 bytes ($2 %)
 progress_data2=Received $1 bytes
index fab8c33..62d7435 100755 (executable)
@@ -6283,8 +6283,8 @@ if ($_[0] == 2) {
        if ($_[1]) {
                $progress_size = $_[1];
                $progress_step = int($_[1] / 10);
-               print &text('progress_size', $progress_callback_url,
-                           $progress_size),"<br>\n";
+               print &text('progress_size2', $progress_callback_url,
+                           &nice_size($progress_size)),"<br>\n";
                }
        else {
                print &text('progress_nosize', $progress_callback_url),"<br>\n";