From 5e9817db2c36797afe07eedd8cec012a91eaf0de Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Sun, 25 Feb 2007 11:37:40 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=12157 --- checkin_notes | 4 ++++ client/hostinfo_unix.C | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 002f855a21..e2d907165b 100755 --- a/checkin_notes +++ b/checkin_notes @@ -2041,3 +2041,7 @@ Bruce 25 Feb 2007 sched_config.C sched_locality.C +Charlie 25 Feb 2007 + Mac: Fix PowerPC bug in new OSXIdleTime() function. + client/ + hostinf_unix.C diff --git a/client/hostinfo_unix.C b/client/hostinfo_unix.C index e8c51e7f14..1360b3cfdd 100644 --- a/client/hostinfo_unix.C +++ b/client/hostinfo_unix.C @@ -799,7 +799,6 @@ static double GetOSXIdleTime(void) { tryNewAPI = false; // CGEventSourceSecondsSinceLastEventType() API is not available on this system } -printf("kCGEventSourceStateCombinedSessionState() returned idleTime = %lf\n", idleTime); if (GetSysIdleTime) return idleTime; } // if (tryNewAPI) @@ -811,8 +810,7 @@ printf("kCGEventSourceStateCombinedSessionState() returned idleTime = %lf\n", id // Here we check for that value and correctly return a 0 idle time. idleTime = CGSSecondsSinceLastInputEvent (-1); if (idleTime >= 18446744000.0) idleTime = 0.0; -printf("CGSSecondsSinceLastInputEvent() returned idleTime = %lf\n", idleTime); - return (1000.0 * idleTime); + return idleTime; // return (double)NXIdleTime(gEventHandle); // Very old and very slow API } #endif // ! __i386__