Skip to content

Commit

Permalink
fix input bat
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharkboy-j committed Dec 4, 2024
1 parent 00a6098 commit 6b08971
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ func starts(params *gosnmp.GoSNMP, config *Config) {

}

if toExport["upsESystemInputVoltage"].(int64) <= 0 {
delete(toExport, "upsESystemInputVoltage")
}

go PushData(toExport, tm)

time.Sleep(time.Second * time.Duration(config.SNMP.Repeat))
Expand Down

0 comments on commit 6b08971

Please sign in to comment.