Merge "Fix stats bug for start_time = 1970-01-01"

This commit is contained in:
Jenkins 2015-12-10 00:36:41 +00:00 committed by Gerrit Code Review
commit 7a7a0031bd
1 changed files with 2 additions and 2 deletions

View File

@ -133,11 +133,11 @@ class MetricsRepository(metrics_repository.MetricsRepository):
dimension_name.encode('utf8'), dimension_value.encode(
'utf8'))
if start_timestamp:
if start_timestamp is not None:
where_clause += " and time > " + str(int(start_timestamp *
1000000)) + "u"
if end_timestamp:
if end_timestamp is not None:
where_clause += " and time < " + str(int(end_timestamp *
1000000)) + "u"