Skip to content

Commit

Permalink
fix statsStore
Browse files Browse the repository at this point in the history
  • Loading branch information
XK4MiLX committed Oct 4, 2024
1 parent 360db36 commit 0af01ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZelBack/src/services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ function startAppMonitoring(appName) {
const containerStorageInfo = await getContainerStorage(appName);
statsNow.disk_stats = containerStorageInfo;
const now = Date.now();
appsMonitored[appName].statsStore({ timestamp: now, data: statsNow });
appsMonitored[appName].statsStore.push({ timestamp: now, data: statsNow });
appsMonitored[appName].statsStore = appsMonitored[appName].statsStore.filter(
(stat) => now - stat.timestamp <= 10 * 60 * 1000,
);
Expand Down

0 comments on commit 0af01ab

Please sign in to comment.