X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mount-latest-subvol;h=bbcf69bd124ab967a45c589413d4e9c24f601811;hb=fa5deaee2e0182ddfc7b39eea7ee2acedb259ddf;hp=d6af39259c7460ab24cd35f78caaf6cac54d07aa;hpb=d6314e9fd15104b8b9db1f1c4b5f612a45d98a8a;p=distro-setup diff --git a/mount-latest-subvol b/mount-latest-subvol index d6af392..bbcf69b 100644 --- a/mount-latest-subvol +++ b/mount-latest-subvol @@ -408,8 +408,8 @@ for vol in q a o i; do ## begin expire leaf vols ## leaf_vols=($vol.leaf.*) count=${#leaf_vols[@]} - leaf_limit_time=$(( $(date +%s) - 60*60*24*60 )) # 60 days - leaf_new_limit_time=$(( $(date +%s) - 60*60*24 )) # 1 day + leaf_limit_time=$(( EPOCHSECONDS - 60*60*24*60 )) # 60 days + leaf_new_limit_time=$(( EPOCHSECONDS - 60*60*24 )) # 1 day # this goes backwards from oldest. leaf_new_limit_time is just in case # the order gets screwed up or something. for leaf in ${leaf_vols[@]}; do