- Timestamp:
- Aug 7, 2013, 7:53:31 PM (11 years ago)
- Children:
- 94eb15b
- Parents:
- db798a2
- git-author:
- Jason Gross <jgross@mit.edu> (07/21/11 18:17:41)
- git-committer:
- Jason Gross <jgross@mit.edu> (08/07/13 19:53:31)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
r6383920 r840e9b5 56 56 g->starttime=time(NULL); /* assumes we call init only a start time */ 57 57 g->lastinputtime=g->starttime; 58 g->last_wakeup_time = g->starttime; 58 59 g->newmsgproc_pid=0; 59 60 … … 482 483 time_t owl_global_get_idletime(const owl_global *g) { 483 484 return(time(NULL)-g->lastinputtime); 485 } 486 487 void owl_global_wakeup(owl_global *g) 488 { 489 if (time(NULL) - g->last_wakeup_time >= 1) { 490 g_free(owl_perlconfig_execute("BarnOwl::Hooks::_wakeup()")); 491 g->last_wakeup_time = time(NULL); 492 } 484 493 } 485 494
Note: See TracChangeset
for help on using the changeset viewer.