summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sbin/StatReports2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/StatReports b/src/sbin/StatReports
index 6d49072d7..e564af627 100644
--- a/src/sbin/StatReports
+++ b/src/sbin/StatReports
@@ -69,7 +69,7 @@ def generatereport(rs, nr):
stats.remove(x)
#test for staleness -if stale add Stale tag
- if not stats.get("time").find(current_date):
+ if stats.get("time").find(current_date) == -1:
SubElement(stats,"Stale")
node.append(stats)