Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
louislam committed Jan 5, 2024
1 parent d7d57ea commit 80e6d44
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,17 @@ let needSetup = false;
log.info("manage", `Clear Statistics User ID: ${socket.userID}`);

await R.exec("DELETE FROM heartbeat");
await R.exec("DELETE FROM stat_daily");

// TODO
// await R.exec("DELETE FROM stat_hourly");

await R.exec("DELETE FROM stat_minutely");

// Restart all monitors to reset the stats
for (let monitorID in server.monitorList) {
await restartMonitor(socket.userID, monitorID);
}

callback({
ok: true,
Expand Down

0 comments on commit 80e6d44

Please sign in to comment.