| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2ca9f4b commit 97458ad
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -84,7 +84,8 @@ assert.ok(hostname.length > 0); | |||
| 84 | 84 | // IBMi process priority is different. | |
| 85 | 85 | if (!common.isIBMi) { | |
| 86 | 86 | const { PRIORITY_BELOW_NORMAL, PRIORITY_LOW } = os.constants.priority; | |
| 87 | - const LOWER_PRIORITY = os.getPriority() > PRIORITY_BELOW_NORMAL ? PRIORITY_BELOW_NORMAL : PRIORITY_LOW; | ||
| 87 | + // Priority means niceness: higher numeric value <=> lower priority | ||
| 88 | + const LOWER_PRIORITY = os.getPriority() < PRIORITY_BELOW_NORMAL ? PRIORITY_BELOW_NORMAL : PRIORITY_LOW; | ||
| 88 | 89 | os.setPriority(LOWER_PRIORITY); | |
| 89 | 90 | const priority = os.getPriority(); | |
| 90 | 91 | is.number(priority); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments