Skip to content

Commit c4dc7f4

Browse files
author
Sporks Discord Bot
committed
change cpu graph length to 3 days
1 parent dd3684c commit c4dc7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update-cpu-graph.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
mysqli_select_db($conn, $settings->dbname);
3131

32-
mysqli_query($conn, "DELETE FROM infobot_cpu_graph WHERE logdate < now() - INTERVAL 1 WEEK");
32+
mysqli_query($conn, "DELETE FROM infobot_cpu_graph WHERE logdate < now() - INTERVAL 3 DAY");
3333
$cpu_percent = trim(`ps aux | grep ./bot$ | awk -F ' ' '{ print $3 }'`);
3434
mysqli_query($conn, "INSERT INTO infobot_cpu_graph (logdate, percent) VALUES(now(), '" . $cpu_percent . "')");
3535

0 commit comments

Comments
 (0)