mirror of
https://github.com/munki/munki.git
synced 2026-01-08 07:29:52 -06:00
Minor change to notifyUserOfUpdates() in managedsoftwareupdate.
git-svn-id: http://munki.googlecode.com/svn/trunk@1013 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -266,7 +266,7 @@ def notifyUserOfUpdates():
|
||||
# subtract 6 hours
|
||||
interval = interval - (6 * 60 * 60)
|
||||
nextNotifyDate = lastNotifiedDate.dateByAddingTimeInterval_(interval)
|
||||
if now.timeIntervalSinceDate_(nextNotifyDate) > 0:
|
||||
if now.timeIntervalSinceDate_(nextNotifyDate) >= 0:
|
||||
# record current notification date
|
||||
munkicommon.set_pref('LastNotifiedDate', now)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user