diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2016-06-21 22:44:24 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2016-06-21 22:44:24 +0200 |
| commit | b418a79584b08ede5b665fc859fb6f3a01a4b044 (patch) | |
| tree | 10385123a10dffa490412992a6f526b5aca67381 | |
| parent | f4868e803df21a154a3feba36d4b4d177f84f588 (diff) | |
| -rwxr-xr-x | ezjail-admin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin index 3a6c5a4..609907d 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
| @@ -463,7 +463,7 @@ filteroldsnapshots() { | |||
| 463 | case ${win} in [0-9]);; [0-9]*[0-9mhdwy]);; *) echo "Unknown window length declaration ${win}"; return ;; esac | 463 | case ${win} in [0-9]);; [0-9]*[0-9mhdwy]);; *) echo "Unknown window length declaration ${win}"; return ;; esac |
| 464 | 464 | ||
| 465 | # values default to minutes | 465 | # values default to minutes |
| 466 | case ${win} in *h) m=60;; *d) m=1440;; *w) m=10080;; *y) m=*525600;; *) m=1;; esac | 466 | case ${win} in *h) m=60;; *d) m=1440;; *w) m=10080;; *y) m=525600;; *) m=1;; esac |
| 467 | win=$((${win%[mhdwy]}*m*60)) | 467 | win=$((${win%[mhdwy]}*m*60)) |
| 468 | 468 | ||
| 469 | # innerloop $repeats over windows | 469 | # innerloop $repeats over windows |
