diff default value
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2024-01-25 15:18:29 +01:00
parent 353a3780c6
commit 11e63155bc
Signed by: wn
GPG Key ID: 836E9E1192A6B132

View File

@ -114,7 +114,7 @@ func Start() {
convertedValue = fmt.Sprintf("%d", gosnmp.ToBigInt(variable.Value))
}
diffValue := "0"
diffValue := "-"
if oidTopic.Diff == "true" {
log.Println("Calculate difference to last value")
key := endpoint.Endpoint + ":" + oidTopic.OID