Skip to content

Commit

Permalink
cpu() cache refactored (windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhildebrandt committed Jul 26, 2023
1 parent 0d9f525 commit fe3c6ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1493,8 +1493,8 @@ function parseWinCache(linesProc, linesCache) {
result.l1i = 0;
result.l2 = util.getValue(lines, 'l2cachesize', ':');
result.l3 = util.getValue(lines, 'l3cachesize', ':');
if (result.l2) { result.l2 = parseInt(result.l2, 10) * 1024; }
if (result.l3) { result.l3 = parseInt(result.l3, 10) * 1024; }
if (result.l2) { result.l2 = parseInt(result.l2, 10) * 1024; } else { result.l2 = 0; }
if (result.l3) { result.l3 = parseInt(result.l3, 10) * 1024; } else { result.l3 = 0; }

// Win32_CacheMemory
const parts = linesCache.split(/\n\s*\n/);
Expand Down

0 comments on commit fe3c6ce

Please sign in to comment.