diff options
author | Josh Kearney <josh@jk0.org> | 2011-03-23 17:15:41 -0500 |
---|---|---|
committer | Josh Kearney <josh@jk0.org> | 2011-03-23 17:15:41 -0500 |
commit | a12b6f0a0808fba5541723a537118447b55b69ad (patch) | |
tree | 43a7b270e0195db72aba3ece6cc8b2f3e3836999 /nova/utils.py | |
parent | b3a8c70304672abe9b461c6cfeed3e8b517ca0b6 (diff) | |
download | nova-a12b6f0a0808fba5541723a537118447b55b69ad.tar.gz nova-a12b6f0a0808fba5541723a537118447b55b69ad.tar.xz nova-a12b6f0a0808fba5541723a537118447b55b69ad.zip |
Better method name
Diffstat (limited to 'nova/utils.py')
-rw-r--r-- | nova/utils.py | 6 |
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 |