]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl use btime_t instead of uint64_t for media stats
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 13 Feb 2007 11:27:38 +0000 (11:27 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 13 Feb 2007 11:27:38 +0000 (11:27 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4175 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/dev.c
bacula/src/stored/dev.h

index a07fb361a41c8530898483e4754ef452e93b2e9c..a070c01bff1e15690d9e7691ef320bfd346be43e 100644 (file)
@@ -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;
index 183ba942bfd84045030e77fb62974140200218a6..e6a5d1c16f6eb3b5017b6b1b1a54415e0f49a4f5 100644 (file)
@@ -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;