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:
parent
5a4750d76c
commit
3e53adf7c0
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user