mirror of
https://github.com/nasa/openmct.git
synced 2025-05-23 10:44:06 +00:00
[Performance] Improve digests/sec indication
Don't let past digest counts bias current rate shown; https://github.com/nasa/openmctweb/issues/369
This commit is contained in:
parent
3fd4304de1
commit
4b82893c36
@ -39,8 +39,11 @@ define(
|
|||||||
start = Date.now();
|
start = Date.now();
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
var secs = (Date.now() - start) / 1000;
|
var now = Date.now(),
|
||||||
|
secs = (now - start) / 1000;
|
||||||
displayed = Math.round(digests / secs);
|
displayed = Math.round(digests / secs);
|
||||||
|
start = now;
|
||||||
|
digests = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function increment() {
|
function increment() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user