mirror of
https://github.com/nasa/openmct.git
synced 2025-04-07 11:26:49 +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();
|
||||
|
||||
function update() {
|
||||
var secs = (Date.now() - start) / 1000;
|
||||
var now = Date.now(),
|
||||
secs = (now - start) / 1000;
|
||||
displayed = Math.round(digests / secs);
|
||||
start = now;
|
||||
digests = 0;
|
||||
}
|
||||
|
||||
function increment() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user