From 263e215d604f55c14b6e4d1122bcd074bfa2e4dd Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 13 Feb 2007 11:27:38 +0000 Subject: [PATCH] ebl use btime_t instead of uint64_t for media stats git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4175 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/dev.c | 2 +- bacula/src/stored/dev.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index a07fb361a4..a070c01bff 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -2195,7 +2195,7 @@ void DEVICE::edit_mount_codes(POOL_MEM &omsg, const char *imsg) /* return the last timer interval (ms) */ int DEVICE::get_timer_count() { - uint64_t old = last_timer; + btime_t old = last_timer; struct timeval tv; gettimeofday(&tv, NULL); last_timer = tv.tv_usec + tv.tv_sec * 1000000; diff --git a/bacula/src/stored/dev.h b/bacula/src/stored/dev.h index 183ba942bf..e6a5d1c16f 100644 --- a/bacula/src/stored/dev.h +++ b/bacula/src/stored/dev.h @@ -280,8 +280,8 @@ public: int rem_wait_sec; int num_wait; - uint64_t last_timer; /* used by read/write/seek to get stats (usec) */ - int last_tick; /* contains last read/write time (usec) */ + btime_t last_timer; /* used by read/write/seek to get stats (usec) */ + btime_t last_tick; /* contains last read/write time (usec) */ uint64_t DevReadTime; uint64_t DevWriteTime; -- 2.39.5