X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fupdate.pp;h=4a8a7c8c21be204eb104da03139fbfdf2d89a45e;hb=3f6863ac4c97f834bebc811852452b073d202682;hp=9b1f68670967f54713b8acd0c45e19501efa7289;hpb=c1d49048c0ebda388ff32175e8de069247bd75c9;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/update.pp b/manifests/update.pp index 9b1f686..4a8a7c8 100644 --- a/manifests/update.pp +++ b/manifests/update.pp @@ -13,7 +13,7 @@ class apt::update { #if we should kick apt_update. $daily_threshold = (strftime('%s') - 86400) if $::apt_update_last_success { - if $::apt_update_last_success < $daily_threshold { + if $::apt_update_last_success + 0 < $daily_threshold { $_kick_apt = true } else { $_kick_apt = false @@ -28,7 +28,7 @@ class apt::update { #if we should kick apt_update. $weekly_threshold = (strftime('%s') - 604800) if $::apt_update_last_success { - if ( $::apt_update_last_success < $weekly_threshold ) { + if ( $::apt_update_last_success + 0 < $weekly_threshold ) { $_kick_apt = true } else { $_kick_apt = false