We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ca9f4b commit 97458adCopy full SHA for 97458ad
test/parallel/test-os.js
@@ -84,7 +84,8 @@ assert.ok(hostname.length > 0);
84
// IBMi process priority is different.
85
if(!common.isIBMi){
86
const{PRIORITY_BELOW_NORMAL,PRIORITY_LOW}=os.constants.priority;
87
-constLOWER_PRIORITY=os.getPriority()>PRIORITY_BELOW_NORMAL ? PRIORITY_BELOW_NORMAL : PRIORITY_LOW;
+// Priority means niceness: higher numeric value <=> lower priority
88
+constLOWER_PRIORITY=os.getPriority()<PRIORITY_BELOW_NORMAL ? PRIORITY_BELOW_NORMAL : PRIORITY_LOW;
89
os.setPriority(LOWER_PRIORITY);
90
constpriority=os.getPriority();
91
is.number(priority);
0 commit comments