Refactor to use get_month_start_timestamp directly

Change-Id: If1839723fce56c2007b087566b02af94e18348cf
This commit is contained in:
Huachao Mao 2017-05-24 13:21:46 +08:00
parent 1f21d7be4e
commit 9be0827fa2
1 changed files with 1 additions and 2 deletions

View File

@ -183,8 +183,7 @@ def refresh_stevedore(namespace=None):
def check_time_state(timestamp=None, period=0, wait_time=0):
if not timestamp:
month_start = get_month_start()
return dt2ts(month_start)
return get_month_start_timestamp()
now = utcnow_ts()
next_timestamp = timestamp + period