This commit is contained in:
shoopea
2021-12-08 22:08:09 +08:00
parent 55fa6be367
commit 4688c5d8e4
2 changed files with 5 additions and 5 deletions

2
bot.go
View File

@@ -1082,7 +1082,7 @@ func botGraphValueDelta(m *tb.Message) {
logInfoDebug("botGraphValueDelta : unit set to %s (factor : %f)", unitName, unitFactor)
for coID, v := range vals {
for i := 0; i < len(vals); i++ {
for i := 0; i < len(v); i++ {
v[i].Y = v[i].Y / unitFactor
if math.IsNaN(v[i].Y) {
logInfoDebug("botGraphValueDelta : NaN : %d / %f", coID, v[i].X)