Skip to content

Commit b5ad6c2

Browse files
committed
change log rotation from 2 days to 25 hr
1 parent 9c5edbd commit b5ad6c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

monitor_gpu.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,13 @@ EOF
311311
###############################################################################
312312
# rotate_logs: Manages log file sizes and retention
313313
# Rotates logs based on:
314-
# - Size limit (10MB)
315-
# - Age limit (2 days)
314+
# - Size limit (5MB)
315+
# - Age limit (25 hr)
316316
# Handles: error.log, warning.log, gpu_stats.log
317317
###############################################################################
318318
rotate_logs() {
319-
local max_size=$((10 * 1024 * 1024)) # 10MB size limit
320-
local max_age=$((2 * 24 * 3600)) # 2 day retention
319+
local max_size=$((5 * 1024 * 1024)) # 5MB size limit
320+
local max_age=$((25 * 3600)) # 25hr retention
321321
local current_time=$(date +%s)
322322

323323
rotate_log_file() {

0 commit comments

Comments
 (0)