[tor-commits] [flashproxy/master] Write a space at the end of visible_sleep.
dcf at torproject.org
dcf at torproject.org
Fri Apr 27 07:21:59 UTC 2012
commit 19fa71d13e9e0b7c62fe1296ada7e35b8089005a
Author: David Fifield <david at bamsoftware.com>
Date: Fri Apr 27 00:20:05 2012 -0700
Write a space at the end of visible_sleep.
This overwrites the last digit when the number of digits decreases.
Otherwise you get output like this:
sleep 14
sleep 13
sleep 12
sleep 11
sleep 10
sleep 90
sleep 80
sleep 70
...
---
experiments/common.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/experiments/common.sh b/experiments/common.sh
index 87f7d79..258f9bd 100644
--- a/experiments/common.sh
+++ b/experiments/common.sh
@@ -15,7 +15,7 @@ visible_sleep() {
while [ "$N" -gt 0 ]; do
sleep 1
N=$((N-1))
- echo -ne "\rsleep $N"
+ echo -ne "\rsleep $N "
done
echo -ne "\n"
}
More information about the tor-commits
mailing list