Skip to content

Commit d604b32

Browse files
committed
Change error logging from console.error to console.warn for /proc/stat read failure
1 parent 32a67ea commit d604b32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_posts/2025-05-10-cpu-usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ script: |
7373
7474
// Check if the command was successful
7575
if (!procStatContent) {
76-
console.error('Failed to read /proc/stat');
76+
console.warn('Failed to read /proc/stat');
7777
// If the command fails, return empty label and default icon
7878
return {
7979
label: '',

0 commit comments

Comments
 (0)