From: Eric Bollengier Date: Wed, 12 Aug 2009 08:36:08 +0000 (+0200) Subject: bat: fix sql with volreadtime volwritetime X-Git-Tag: Release-5.0.0~333^2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aabaca9a6d4d33bf725e3f4e82c5fc13cadb3189;p=bacula%2Fbacula bat: fix sql with volreadtime volwritetime bat: add drive=0 in update slots command --- diff --git a/bacula/src/qt-console/mediainfo/mediainfo.cpp b/bacula/src/qt-console/mediainfo/mediainfo.cpp index c806aa39e8..bbb4e7df1d 100644 --- a/bacula/src/qt-console/mediainfo/mediainfo.cpp +++ b/bacula/src/qt-console/mediainfo/mediainfo.cpp @@ -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 " diff --git a/bacula/src/qt-console/storage/content.cpp b/bacula/src/qt-console/storage/content.cpp index a8b6a120a4..6b186c228c 100644 --- a/bacula/src/qt-console/storage/content.cpp +++ b/bacula/src/qt-console/storage/content.cpp @@ -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());