Skip to content

Commit

Permalink
Account for non-empty cpus file with whitespace chars
Browse files Browse the repository at this point in the history
If a CPU file exists but is empty, previously we reported this file with a CPU count of 1. This change trims whitespace from the file, and makes sure that the length of any token in the file is greater than 0 before incrementing the CPU count variable. This will (correctly) report the file with a CPU count of 0, and the result will be filtered out as expected.
  • Loading branch information
angelapwen committed Feb 15, 2024
1 parent 65b0987 commit dc7e2b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dc7e2b5

Please sign in to comment.