]> git.sur5r.net Git - bacula/bacula/commitdiff
Bweb: Display database size by default (assume mysql >= 5)
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 22 Jan 2010 09:34:36 +0000 (10:34 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 22 Jan 2010 09:35:31 +0000 (10:35 +0100)
gui/bweb/lib/Bweb.pm

index 7c3f5dde2dfb8bba889de0a8cb39cecca3b3d445..645c10118d67fdc5f38298161b7accd4bc5875e6 100644 (file)
@@ -1331,9 +1331,9 @@ our %sql_func = (
               STARTTIME_PMONTH => " DATE_FORMAT(Job.StartTime, '%m') ",
               STARTTIME_PWEEK => " DATE_FORMAT(Job.StartTime, '%v') ",
               # with mysql < 5, you have to play with the ugly SHOW command
-              DB_SIZE => " SELECT 0 ",
+              #DB_SIZE => " SELECT 0 ",
               # works only with mysql 5
-              DB_SIZE => " SELECT sum(DATA_LENGTH) FROM INFORMATION_SCHEMA.TABLES ",
+              DB_SIZE => " SELECT sum(DATA_LENGTH) FROM INFORMATION_SCHEMA.TABLES ",
               CAT_POOL_TYPE => " CONCAT(MediaType,'_',Pool.Name) ",
               CONCAT_SEP => " SEPARATOR '' ",
           },