Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Tidy indentation of stats script function
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Smith committed Oct 29, 2016
1 parent 82893a2 commit 66773b0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions utilities/stats-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@

bytestohr()
{
value=$1
valueint=$1
i=0
suffix=" KMGTPEZY"
while [ $valueint -gt 1024 ]; do
i=$((i+1))
valueint=$((valueint/1024))
value=$(echo "scale=1;$value/1024" | bc)
done
echo $value ${suffix:$i:1}B
value=$1
valueint=$1
i=0
suffix=" KMGTPEZY"
while [ $valueint -gt 1024 ]; do
i=$((i+1))
valueint=$((valueint/1024))
value=$(echo "scale=1;$value/1024" | bc)
done
echo $value ${suffix:$i:1}B
}


Expand Down

0 comments on commit 66773b0

Please sign in to comment.