diff --git a/examples/check_peak.py b/examples/check_peak.py index 68740ba..58293ac 100755 --- a/examples/check_peak.py +++ b/examples/check_peak.py @@ -33,7 +33,7 @@ print(" SoC: %.2f" % soc_percent) print("Total WH: %.2f" % total_wh) wh_remain = (soc_percent / 100.0) * total_wh -h_estim = wh_remain - (avg_charge - avg_discharge) +h_estim = wh_remain - (avg_discharge - avg_charge) h_estpct = (h_estim / total_wh) * 100 print("WH remain: %.2f" % wh_remain)