diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2016-12-18 14:07:25 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-12-18 14:07:25 +0000 |
commit | 3e53adf7c0b83194a74a9fa75a7ebbf1c077de9a (patch) | |
tree | e042636b42e7a6d13bae820cfac657ca9587705c | |
parent | 5a4750d76c9930a6e4a181ab664f0cac4d1a400b (diff) | |
download | lvm2-3e53adf7c0b83194a74a9fa75a7ebbf1c077de9a.tar.gz |
dmstats: fix TIMERFD _timer_running() test
-rw-r--r-- | tools/dmsetup.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c index 06d609b21..e5ac80acc 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -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 */ |