We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79cf9b4 commit dbddfc2Copy full SHA for dbddfc2
lib/scratch-buffers.c
@@ -230,16 +230,16 @@ _thread_maintenance_period_elapsed(void)
230
if (!scratch_buffers_time_of_last_maintenance)
231
return TRUE;
232
233
- iv_validate_now();
234
- if (scratch_buffers_time_of_last_maintenance - iv_now.tv_sec >= SCRATCH_BUFFERS_MAINTENANCE_PERIOD)
+ time_t now = get_cached_realtime_sec();
+ if (scratch_buffers_time_of_last_maintenance - now >= SCRATCH_BUFFERS_MAINTENANCE_PERIOD)
235
236
return FALSE;
237
}
238
239
static void
240
_thread_maintenance_update_time(void)
241
{
242
- scratch_buffers_time_of_last_maintenance = iv_now.tv_sec;
+ scratch_buffers_time_of_last_maintenance = get_cached_realtime_sec();
243
244
245
void
0 commit comments