fix value_delta again

This commit is contained in:
shoopea 2021-12-08 20:20:45 +08:00
parent 4ad875c1ec
commit ef7af10c66
2 changed files with 8 additions and 5 deletions

5
bot.go
View File

@ -1060,7 +1060,10 @@ func botGraphValueDelta(m *tb.Message) {
v0 = v1
v1 = v2
v2 = v[i].Y
v[i].Y = (v0 + v1 + v2) / 3
v[i].Y = (v0+v1+v2)/3 - v1
if math.Abs(v[i].Y) > maxVal {
maxVal = math.Abs(v[i].Y)
}
}
vals[coID] = v[3:]
}

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "c6a235e"
var buildstamp = "2021-12-08_12:15:03"
var commits = "240"
var version = "c6a235e-b240 - 2021-12-08_12:15:03"
var githash = "4ad875c"
var buildstamp = "2021-12-08_12:20:30"
var commits = "241"
var version = "4ad875c-b241 - 2021-12-08_12:20:30"