From: Eric Bollengier Date: Tue, 13 Feb 2007 11:27:38 +0000 (+0000) Subject: ebl use btime_t instead of uint64_t for media stats X-Git-Tag: Release-7.0.0~6897 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=263e215d604f55c14b6e4d1122bcd074bfa2e4dd;p=bacula%2Fbacula 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 --- 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;