Fix superfluous asteriks in multiplication

This commit is contained in:
Dirk Engling 2016-06-21 22:44:24 +02:00
parent f4868e803d
commit b418a79584

View File

@ -463,7 +463,7 @@ filteroldsnapshots() {
case ${win} in [0-9]);; [0-9]*[0-9mhdwy]);; *) echo "Unknown window length declaration ${win}"; return ;; esac case ${win} in [0-9]);; [0-9]*[0-9mhdwy]);; *) echo "Unknown window length declaration ${win}"; return ;; esac
# values default to minutes # values default to minutes
case ${win} in *h) m=60;; *d) m=1440;; *w) m=10080;; *y) m=*525600;; *) m=1;; esac case ${win} in *h) m=60;; *d) m=1440;; *w) m=10080;; *y) m=525600;; *) m=1;; esac
win=$((${win%[mhdwy]}*m*60)) win=$((${win%[mhdwy]}*m*60))
# innerloop $repeats over windows # innerloop $repeats over windows