incorrect logic (#876)

This commit is contained in:
Peli de Halleux 2018-06-18 14:28:26 -07:00 committed by GitHub
parent 4f0ffa1d30
commit 8cb951f924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@
value = Math.abs(value);
// auto-scale "high" is not provided
if (high <= 0) {
if (high > 0) {
barGraphHigh = high;
} else if (value > barGraphHigh || now - barGraphHighLast > 10000) {
barGraphHigh = value;