Permalink
Browse files

fix for null values

  • Loading branch information...
serghey-rodin committed Apr 5, 2013
1 parent 2cdeb72 commit 23bed9ed1917f14dc44c904179ed765b84bb8765
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/v-update-web-domain-traff
@@ -45,12 +45,12 @@ bytes=0
# Parsing log
while read line; do
if [[ "$line" =~ ^[0-9]+$ ]]; then
line=${line#0}
bytes=$(($bytes + $line))
if [ ! -z "$line" ]; then
bytes=$(($bytes + $line))
fi
fi
done < $log_file
# Converting to Mb

0 comments on commit 23bed9e

Please sign in to comment.