]> git.sur5r.net Git - bacula/bacula/commitdiff
bat: fix sql with volreadtime volwritetime
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 12 Aug 2009 08:36:08 +0000 (10:36 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 12 Aug 2009 08:36:08 +0000 (10:36 +0200)
bat: add drive=0 in update slots command

bacula/src/qt-console/mediainfo/mediainfo.cpp
bacula/src/qt-console/storage/content.cpp

index c806aa39e8cf6147cf97a8d511dcdb3186506d34..bbb4e7df1ddc7a87cd35c0ff5e2cbd0653b52cfd 100644 (file)
@@ -137,7 +137,7 @@ void MediaInfo::populateForm()
       "SELECT MediaId, VolumeName, Pool.Name, MediaType, FirstWritten,"
       "LastWritten, VolMounts, VolBytes, Media.Enabled,"
       "Location.Location, VolStatus, RecyclePool.Name, Media.Recycle, "
-      "VolReadTime//1000000, VolWriteTime//1000000, Media.VolUseDuration, "
+      "VolReadTime/1000000, VolWriteTime/1000000, Media.VolUseDuration, "
       "Media.MaxVolJobs, "
       "Media.MaxVolFiles, Media.MaxVolBytes, Media.VolRetention,InChanger,Slot "
       "FROM Media JOIN Pool USING (PoolId) LEFT JOIN Pool AS RecyclePool "
index a8b6a120a44b2993af9b9c36dc19dd170ff9c528..6b186c228cbff09420c3bad52a4c62cd65abe332 100644 (file)
@@ -276,7 +276,7 @@ void Content::consoleUpdateSlots()
    if (sel != "") {
       cmd += sel;
    }
-   cmd += " storage=" + m_currentStorage;
+   cmd += " drive=0 storage=" + m_currentStorage;
 
    Pmsg1(0, "cmd=%s\n", cmd.toUtf8().data());