projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd3610b
)
os/windows/posix.c: Strip trailing whitespace
author
Bart Van Assche
<bvanassche@acm.org>
Sat, 4 Jul 2020 03:16:07 +0000
(20:16 -0700)
committer
Bart Van Assche
<bvanassche@acm.org>
Sat, 4 Jul 2020 22:59:19 +0000
(15:59 -0700)
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
os/windows/posix.c
patch
|
blob
|
blame
|
history
diff --git
a/os/windows/posix.c
b/os/windows/posix.c
index e36453e9e8c77d129e760fe31424cb8af88c57e6..729d1b1fc3380d9eadc8c325aded1670a93ddabc 100644
(file)
--- a/
os/windows/posix.c
+++ b/
os/windows/posix.c
@@
-750,7
+750,7
@@
int setgid(gid_t gid)
int nice(int incr)
{
DWORD prioclass = NORMAL_PRIORITY_CLASS;
-
+
if (incr < -15)
prioclass = HIGH_PRIORITY_CLASS;
else if (incr < 0)
@@
-759,7
+759,7
@@
int nice(int incr)
prioclass = IDLE_PRIORITY_CLASS;
else if (incr > 0)
prioclass = BELOW_NORMAL_PRIORITY_CLASS;
-
+
if (!SetPriorityClass(GetCurrentProcess(), prioclass))
log_err("fio: SetPriorityClass failed\n");