We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c5edbd commit b5ad6c2Copy full SHA for b5ad6c2
monitor_gpu.sh
@@ -311,13 +311,13 @@ EOF
311
###############################################################################
312
# rotate_logs: Manages log file sizes and retention
313
# Rotates logs based on:
314
-# - Size limit (10MB)
315
-# - Age limit (2 days)
+# - Size limit (5MB)
+# - Age limit (25 hr)
316
# Handles: error.log, warning.log, gpu_stats.log
317
318
rotate_logs() {
319
- local max_size=$((10 * 1024 * 1024)) # 10MB size limit
320
- local max_age=$((2 * 24 * 3600)) # 2 day retention
+ local max_size=$((5 * 1024 * 1024)) # 5MB size limit
+ local max_age=$((25 * 3600)) # 25hr retention
321
local current_time=$(date +%s)
322
323
rotate_log_file() {
0 commit comments