mirror of
https://github.com/github/codeql-action.git
synced 2026-06-01 03:14:50 +00:00
Compute RAM based on free system RAM rather than total system RAM
This commit is contained in:
Generated
+1
-1
@@ -150,7 +150,7 @@ exports.getMemoryFlagValueForPlatform = getMemoryFlagValueForPlatform;
|
||||
* @returns {number} the amount of RAM to use, in megabytes
|
||||
*/
|
||||
function getMemoryFlagValue(userInput, isScalingReservedRamEnabled) {
|
||||
return getMemoryFlagValueForPlatform(userInput, os.totalmem(), process.platform, isScalingReservedRamEnabled);
|
||||
return getMemoryFlagValueForPlatform(userInput, os.freemem(), process.platform, isScalingReservedRamEnabled);
|
||||
}
|
||||
exports.getMemoryFlagValue = getMemoryFlagValue;
|
||||
/**
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user