increase granularity of time to be < 1 day.

we were only sorting the list based on the integer day when things
were happening, which just caused confusion. Make this a more strict
time sort.

Change-Id: Iccd228069707368c7da8d060486567d4b389e9b1
Reviewed-on: https://review.openstack.org/23587
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Sean Dague 2013-03-05 13:37:09 -05:00 committed by Jenkins
parent 476a7983cf
commit 8d8834ae7a

View File

@ -138,13 +138,10 @@ class Scoreboard(threading.Thread):
def impact(bug):
"""Golf rules for bugs, smaller the more urgent."""
age = (now - bug.last_seen).days
if not age:
age = 0.1
age = (now - bug.last_seen).total_seconds()
if bug.is_closed():
age = age + 5.0
age = age + (5.0 * 86400.0)
return age