tools/fast: change delta from 50ms to 40ms

pull/6729/head
Alexander Medvednikov 2020-11-03 02:29:50 +01:00
parent f32c6784e7
commit a76460f5d6
1 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,5 @@
const delta = 40;
(function () {
var table = document.querySelector("table");
var isTbody = table.children[0].nodeName == "TBODY";
@ -31,13 +33,13 @@
vf: currentData.vf - prevData.vf,
vh: currentData.vh - prevData.vh
};
if (Math.abs(result.vc) > 50)
if (Math.abs(result.vc) > delta)
tr.children[vc].appendChild(createElement(result.vc));
if (Math.abs(result.vv) > 50)
if (Math.abs(result.vv) > delta)
tr.children[vv].appendChild(createElement(result.vv));
if (Math.abs(result.vf) > 50)
if (Math.abs(result.vf) > delta)
tr.children[vf].appendChild(createElement(result.vf));
if (Math.abs(result.vh) > 50)
if (Math.abs(result.vh) > delta)
tr.children[vh].appendChild(createElement(result.vh));
}
});