Commit 24c8fcda authored by Alan Mitchell's avatar Alan Mitchell
Browse files

Bug in conversion of time period.

parent 903e04e9
......@@ -177,7 +177,7 @@ class BaseChart(object):
"""
tm_per = self.request_params['time_period']
if tm_per != "custom":
st_ts = int(time.time()) - int(tm_per) * 24 * 3600
st_ts = int(time.time()) - float(tm_per) * 24 * 3600
end_ts = time.time() + 3600.0 # adding an hour to be sure all records are caught
else:
st_date = self.request_params['start_date']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment