Browse Source

Merge branch 'idleprio' into bfgminer

Luke Dashjr 13 years ago
parent
commit
264c10cd51
1 changed files with 1 additions and 2 deletions
  1. 1 2
      compat.h

+ 1 - 2
compat.h

@@ -22,8 +22,7 @@ enum {
 
 static inline int setpriority(int which, int who, int prio)
 {
-	/* FIXME - actually do something */
-	return 0;
+	return -!SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
 }
 
 typedef unsigned long int ulong;