This commit is contained in:
j 2008-07-13 14:06:09 +02:00
commit 44c71d1d12

View file

@ -53,11 +53,11 @@ class Archive(SQLObject):
def findNew(self):
#only update archive if not modified for more than 2 hours
if archive.isOnline():
if archive.sinceLastModification() > 60*60*2:
archive.importFiles()
if self.isOnline():
if self.sinceLastModification() > 60*60*2:
self.importFiles()
else:
print "ignoring %s, was changed withing last 2 hours" % archive.basePath
print "ignoring %s, was changed less than 2 hours ago" % archive.basePath
else:
print "WARNING %s, is not online, check power and disk" % archive.basePath