Remove unnecessary call to monotonic()

This commit is contained in:
Kovid Goyal 2019-07-01 16:36:29 +05:30
parent 62a0be4a11
commit a2407f94e4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -678,7 +678,7 @@ draw_resizing_text(OSWindow *w) {
static inline bool static inline bool
no_render_frame_received_recently(OSWindow *w, double now, double max_wait) { no_render_frame_received_recently(OSWindow *w, double now, double max_wait) {
bool ans = now - w->last_render_frame_received_at > max_wait; bool ans = now - w->last_render_frame_received_at > max_wait;
if (ans) log_error("No render frame received in %f seconds, re-requesting at: %f", max_wait, monotonic()); if (ans) log_error("No render frame received in %f seconds, re-requesting at: %f", max_wait, now);
return ans; return ans;
} }