diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index 9c1a5735..70aba207 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -501,7 +501,7 @@ def cal_enstat(type, sflogId, mgroupId, year, month, day, hour, year_s, month_s, enstat.run_hour = enstat.total_hour_now - enstat.shut_hour try: enstat.run_rate = (enstat.run_hour / enstat.total_hour_now) * 100 - enstat.production_hour = enstat.total_production / enstat.total_hour_now + enstat.production_hour = enstat.total_production / enstat.run_hour except ZeroDivisionError: pass enstat.save()