handle negative values
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-04-09 13:01:57 +02:00
parent a8ab382216
commit 53dc8a68a3

View File

@ -122,6 +122,8 @@ func Start() {
if err != nil {
log.Printf("Error when building difference: %v", err)
convertedValue = "-1"
} else if diff < 0 {
convertedValue = "-2"
} else {
convertedValue = diff
}