[906] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r894 - trunk/owl

daemon@ATHENA.MIT.EDU (asedeno@MIT.EDU)
Thu Oct 29 18:11:00 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: asedeno@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Thu, 17 Jan 2008 02:13:45 -0500 (EST)

Author: asedeno
Date: 2008-01-17 02:13:44 -0500 (Thu, 17 Jan 2008)
New Revision: 894

Modified:
   trunk/owl/global.c
   trunk/owl/owl.c
Log:
dropping one unnecessary time(NULL) call.


Modified: trunk/owl/global.c
===================================================================
--- trunk/owl/global.c	2008-01-17 07:03:11 UTC (rev 893)
+++ trunk/owl/global.c	2008-01-17 07:13:44 UTC (rev 894)
@@ -479,8 +479,8 @@
   return(g->lastinputtime);
 }
 
-void owl_global_update_lastinputtime(owl_global *g) {
-  g->lastinputtime = time(NULL);
+void owl_global_set_lastinputtime(owl_global *g, time_t time) {
+  g->lastinputtime = time;
 }
 
 time_t owl_global_get_idletime(owl_global *g) {

Modified: trunk/owl/owl.c
===================================================================
--- trunk/owl/owl.c	2008-01-17 07:03:11 UTC (rev 893)
+++ trunk/owl/owl.c	2008-01-17 07:13:44 UTC (rev 894)
@@ -533,7 +533,7 @@
     if (j==ERR) {
       usleep(10000);
     } else {
-      owl_global_update_lastinputtime(&g);
+      owl_global_set_lastinputtime(&g, now);
       /* find and activate the current keymap.
        * TODO: this should really get fixed by activating
        * keymaps as we switch between windows... 


home help back first fref pref prev next nref lref last post