diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2020-08-11 11:28:16 +0300 |
---|---|---|
committer | Amar Tumballi <amar@kadalu.io> | 2020-08-22 03:49:41 +0000 |
commit | fb54f382e19b2bead226184b0f505eb6900991cf (patch) | |
tree | 55d01943731d9e1cd9ed2263d148debfea07ed59 /xlators/performance/quick-read/src/quick-read.h | |
parent | eb0943cef9cbc65d2e9f85ba7aca3dfeb86d3429 (diff) |
performance/quick-read: simplify and cleanup internal time management
Since this xlator measures time intervals in seconds,
gettimeofday() may be replaced with simpler gf_time().
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Change-Id: I5962771acbe8553dca51970183a55786a5289828
Updates: #1002
Diffstat (limited to 'xlators/performance/quick-read/src/quick-read.h')
-rw-r--r-- | xlators/performance/quick-read/src/quick-read.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.h b/xlators/performance/quick-read/src/quick-read.h index 67850821b8e..20fcc70b3a7 100644 --- a/xlators/performance/quick-read/src/quick-read.h +++ b/xlators/performance/quick-read/src/quick-read.h @@ -39,7 +39,7 @@ struct qr_inode { uint32_t ia_ctime_nsec; uint32_t gen_rollover; struct iatt buf; - struct timeval last_refresh; + time_t last_refresh; struct list_head lru; uint64_t gen; uint64_t invalidation_time; |