GetPlanRequiredDuration is the estimated total charging duration
(goal, maxPower float64)
| 73 | |
| 74 | // GetPlanRequiredDuration is the estimated total charging duration |
| 75 | func (lp *Loadpoint) GetPlanRequiredDuration(goal, maxPower float64) time.Duration { |
| 76 | lp.RLock() |
| 77 | defer lp.RUnlock() |
| 78 | return lp.getPlanRequiredDuration(goal, maxPower) |
| 79 | } |
| 80 | |
| 81 | // getPlanRequiredDuration is the estimated total charging duration |
| 82 | func (lp *Loadpoint) getPlanRequiredDuration(goal, maxPower float64) time.Duration { |