We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a73b73 commit 14be9aaCopy full SHA for 14be9aa
bin/v-update-web-domains-traff
@@ -43,7 +43,7 @@ for domain in $(search_objects 'web' 'SUSPENDED' "no" 'DOMAIN'); do
43
44
# Parsing log
45
while read line; do
46
- if [[ '-' != "$line" ]] && [[ 0 -lt "$line" ]]; then
+ if [[ "$1" =~ ^[0-9]+$ ]]; then
47
bytes=$(($bytes + $line))
48
fi
49
done < $log_file
func/main.sh
@@ -110,7 +110,7 @@ is_package_full() {
110
esac
111
limit=$(grep "^$1=" $USER_DATA/user.conf | cut -f 2 -d \' )
112
if [ "$used" -ge "$limit" ]; then
113
- echo "Error: Limit reached / Upgrade package"
+ echo "Error: Limit reached / Upgrade package"
114
log_event "$E_LIMIT" "$EVENT"
115
exit $E_LIMIT
116
0 commit comments