[haiku-webkit-commits] r281 - webkit/trunk/WebCore/platform/haiku

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Thu, 04 Mar 2010 14:59:02 +0000

Author: stippi
Date: Thu Mar  4 14:59:02 2010
New Revision: 281
URL: http://mmlr.dyndns.org/changeset/281

Log:
I knew Haiku has idle_time() somewhere... it's even implemented.

Modified:
   webkit/trunk/WebCore/platform/haiku/TemporaryLinkStubs.cpp

Modified: webkit/trunk/WebCore/platform/haiku/TemporaryLinkStubs.cpp
==============================================================================
--- webkit/trunk/WebCore/platform/haiku/TemporaryLinkStubs.cpp  Thu Mar  4 
00:57:53 2010        (r280)
+++ webkit/trunk/WebCore/platform/haiku/TemporaryLinkStubs.cpp  Thu Mar  4 
14:59:02 2010        (r281)
@@ -38,6 +38,7 @@
 #include "PlatformString.h"
 #include "SSLKeyGenerator.h"
 #include "SystemTime.h"
+#include <InterfaceDefs.h>
 
 using namespace WebCore;
 
@@ -62,8 +63,7 @@
 float userIdleTime()
 {
        // This is for example used to determine if Pages are to be released 
from the PageCache...
-    notImplemented();
-    return 0;
+    return idle_time() / 1000000.0f;
 }
 
 } // namespace WebCore

Other related posts:

  • » [haiku-webkit-commits] r281 - webkit/trunk/WebCore/platform/haiku - webkit