|
@@ -508,6 +508,8 @@ class MchDataCenter(object):
|
|
|
cur_paths = paths
|
|
|
else:
|
|
|
cur_paths = self._merge_mobile_type_path(paths, card_type)
|
|
|
+ if len(cur_paths) == 0:
|
|
|
+ continue
|
|
|
cur_paths = cur_paths[mchid]
|
|
|
mdata = self._merge_data(hfive,cur_paths)
|
|
|
result = self._calc_mratio(mdata,presecs,time_stamp - day_stamp)
|
|
@@ -528,7 +530,7 @@ class MchDataCenter(object):
|
|
|
|
|
|
while True:
|
|
|
try:
|
|
|
- time_sec = int(stime.time())
|
|
|
+ time_sec = int(stime.time() - 86400)
|
|
|
presecs = [900, 1800, 3600, 7200, 86400]
|
|
|
mratios = self.mratio_types(time_sec, presecs)
|
|
|
|