forked from opsengine/cpulimit
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance get_ncpu function with static variable caching
Implement static variable caching to prevent unnecessary repeated system calls.
- Loading branch information
1 parent
0a641a0
commit cad8e0f
Showing
1 changed file
with
26 additions
and
11 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