1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

dmstats: fix TIMERFD _timer_running() test

This commit is contained in:
Bryn M. Reeves 2016-12-18 14:07:25 +00:00
parent 5a4750d76c
commit 3e53adf7c0

View File

@ -652,10 +652,7 @@ static int _do_timer_wait(void)
static int _timer_running(void)
{
/*
* Clock shutdown for exit - nothing to do.
*/
return ((_timer_fd == TIMER_STOPPED) && !_cycle_timestamp);
return ((_timer_fd != TIMER_STOPPED) || _cycle_timestamp);
}
#else /* !HAVE_SYS_TIMERFD_H */