mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
dmstats: don't declare _start_timestamp if HAVE_SYS_TIMERFD_H
The _start_timestamp is not used by the TIMERFD clock.
This commit is contained in:
parent
3e53adf7c0
commit
a15f0d181c
@ -282,13 +282,15 @@ const char *_stats_types[] = {
|
|||||||
|
|
||||||
/* report timekeeping */
|
/* report timekeeping */
|
||||||
static struct dm_timestamp *_cycle_timestamp = NULL;
|
static struct dm_timestamp *_cycle_timestamp = NULL;
|
||||||
|
#ifndef HAVE_SYS_TIMERFD_H
|
||||||
static struct dm_timestamp *_start_timestamp = NULL;
|
static struct dm_timestamp *_start_timestamp = NULL;
|
||||||
|
#else /* HAVE_SYS_TIMERFD_H */
|
||||||
|
static int _timer_fd = -1; /* timerfd file descriptor. */
|
||||||
|
#endif /* !HAVE_SYS_TIMERFD_H */
|
||||||
|
|
||||||
static uint64_t _interval = 0; /* configured interval in nsecs */
|
static uint64_t _interval = 0; /* configured interval in nsecs */
|
||||||
static uint64_t _new_interval = 0; /* flag top-of-interval */
|
static uint64_t _new_interval = 0; /* flag top-of-interval */
|
||||||
static uint64_t _last_interval = 0; /* approx. measured interval in nsecs */
|
static uint64_t _last_interval = 0; /* approx. measured interval in nsecs */
|
||||||
#ifdef HAVE_SYS_TIMERFD_H
|
|
||||||
static int _timer_fd = -1; /* timerfd file descriptor. */
|
|
||||||
#endif /* HAVE_SYS_TIMERFD_H */
|
|
||||||
|
|
||||||
/* Invalid fd value used to signal end-of-reporting. */
|
/* Invalid fd value used to signal end-of-reporting. */
|
||||||
#define TIMER_STOPPED -2
|
#define TIMER_STOPPED -2
|
||||||
|
Loading…
Reference in New Issue
Block a user