various fixes
[distro-setup] / btrfsmaint
index 1639a8dd48f450e69fdf67558a4780059583ec1d..eab8376ede1a718bcb1f60332e4bed3314ba75a4 100755 (executable)
@@ -152,9 +152,9 @@ main() {
       # the wiki recommends 30 days or so, but
       # it makes the comp lag like shit for a day,
       # so I'm going with 90 days.
-      if (( date > $(date +%s) - 60*60*24*30 )); then
+      if (( date > EPOCHSECONDS - 60*60*24*30 )); then
         if $dryrun; then
-          echo "$0: skiping scrub of $mnt, last was $(( ($(date +%s) - date) / 60/60/24 )) days ago, < 30 days"
+          echo "$0: skiping scrub of $mnt, last was $(( (EPOCHSECONDS - date) / 60/60/24 )) days ago, < 30 days"
         fi
         continue
       fi