summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/utils.py b/nova/utils.py
index bf1aa4a91..04b6c9778 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -334,9 +334,9 @@ def utcnow():
utcnow.override_time = None
-def is_then_greater(then, seconds):
- """Return True of 'then' is greater than 'seconds'"""
- if utcnow() - then > datetime.timedelta(seconds=seconds):
+def is_older_than(before, seconds):
+ """Return True if before is older than 'seconds'"""
+ if utcnow() - before > datetime.timedelta(seconds=seconds):
return True
else:
return False