pace: drop lazyUnlazy

master
Rob Pilling 2024-10-10 18:10:36 +01:00
parent 5c9a4aed62
commit ca1cb2253a
1 changed files with 0 additions and 4 deletions

View File

@ -13,7 +13,6 @@ const exs = require("exstats").getStats(
);
let drawTimeout: TimeoutId | undefined;
let lastUnlazy = 0;
const splits: number[] = []; // times
let splitOffset = 0, splitOffsetPx = 0;
@ -85,9 +84,6 @@ const draw = () => {
layout["time"]!.label = formatDuration(exs.state.duration);
layout["pace"]!.label = pace;
layout.render();
if (now - lastUnlazy > 30000)
layout.forgetLazyState(), lastUnlazy = now;
};
const pad2 = (n: number) => `0${n}`.substr(-2);