Improve formatting
This commit is contained in:
parent
739fd26ced
commit
d5dcca5525
2 changed files with 3 additions and 3 deletions
|
|
@ -505,7 +505,7 @@ func (lp *LoadPoint) detectPhases() {
|
|||
}
|
||||
|
||||
currents := []float64{i1, i2, i3}
|
||||
lp.log.TRACE.Printf("charge currents: %vA", currents)
|
||||
lp.log.TRACE.Printf("charge currents: %.3gA", currents)
|
||||
lp.publish("chargeCurrents", currents)
|
||||
|
||||
if lp.charging {
|
||||
|
|
@ -518,7 +518,7 @@ func (lp *LoadPoint) detectPhases() {
|
|||
|
||||
if phases > 0 {
|
||||
lp.Phases = phases
|
||||
lp.log.DEBUG.Printf("detected phases: %dp %vA", lp.Phases, currents)
|
||||
lp.log.DEBUG.Printf("detected phases: %dp %.3gA", lp.Phases, currents)
|
||||
|
||||
lp.publish("activePhases", lp.Phases)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ func (site *Site) updateMeters() error {
|
|||
if phaseMeter, ok := site.gridMeter.(api.MeterCurrent); err == nil && ok {
|
||||
i1, i2, i3, err := phaseMeter.Currents()
|
||||
if err == nil {
|
||||
site.log.TRACE.Printf("grid currents: %vA", []float64{i1, i2, i3})
|
||||
site.log.TRACE.Printf("grid currents: %.3gA", []float64{i1, i2, i3})
|
||||
site.publish("gridCurrents", []float64{i1, i2, i3})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue