Merge "Fix stats bug for start_time = 1970-01-01"
This commit is contained in:
commit
7a7a0031bd
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue