Browse Source

sde-download: Fixed mirror-test output to turn to KB since 1024 bytes instead of an arbitrary 4096

karasz/new-early
Alejandro Mery 16 years ago
parent
commit
c5ddc3ca78
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/sde-download/mirror-test.sh

+ 1
- 1
lib/sde-download/mirror-test.sh

@ -54,7 +54,7 @@ while read name country admin url ; do
if [ "${speed:-0}" = "0" ]; then if [ "${speed:-0}" = "0" ]; then
echo ' failed' 1>&2 echo ' failed' 1>&2
else else
if [ $speed -lt 4096 ]; then
if [ $speed -lt 1024 ]; then
speedf="$speed B/s" speedf="$speed B/s"
elif [ $speed -lt 1048576 ]; then elif [ $speed -lt 1048576 ]; then
speedf="$(div_dot2f $speed 1024) KB/s" speedf="$(div_dot2f $speed 1024) KB/s"

Loading…
Cancel
Save