-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
memory-monitor: Move file cleanup to exit handler.
This update moves the file cleanup process to an exit handler to ensure it runs even if the script encounters an error. By trapping the cleanup function, the script reliably archives old files, deletes temporary files, and maintains the total archive size below 100 MB. This change addresses a previous issue where errors could lead to leftover files not being removed, enhancing the overall reliability and resource management. Signed-off-by: Nikolay Martyanov <[email protected]>
- Loading branch information
1 parent
57322dc
commit c65ba9e
Showing
2 changed files
with
65 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters