mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
windows.c: remove duplicate code in ui_get_idle_time
This commit is contained in:
parent
7ed821c0d6
commit
7ee113e687
@ -206,16 +206,11 @@ ui_get_idle_time(void)
|
|||||||
unsigned long result = info->idle;
|
unsigned long result = info->idle;
|
||||||
XFree(info);
|
XFree(info);
|
||||||
return result;
|
return result;
|
||||||
} else {
|
|
||||||
gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL);
|
|
||||||
unsigned long ms_elapsed = seconds_elapsed * 1000.0;
|
|
||||||
return ms_elapsed;
|
|
||||||
}
|
}
|
||||||
#else
|
#endif
|
||||||
gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL);
|
gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL);
|
||||||
unsigned long ms_elapsed = seconds_elapsed * 1000.0;
|
unsigned long ms_elapsed = seconds_elapsed * 1000.0;
|
||||||
return ms_elapsed;
|
return ms_elapsed;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user