From 2fada6b70143a14127f4f8fe1cc62ff43de1eff4 Mon Sep 17 00:00:00 2001 From: dormando Date: Tue, 26 Jun 2012 13:52:06 -0700 Subject: [PATCH] Fix mogstats for all non-postgres DB's :( I doofused on the previous commit --- mogstats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mogstats b/mogstats index ede22f1..1e2bfec 100755 --- a/mogstats +++ b/mogstats @@ -425,7 +425,7 @@ sub stats_for_devices { sub stats_for_files_sql { my $sql = 'SELECT dmid, classid, COUNT(classid), sum(length), sum(length::int8 * devcount::int8) FROM file GROUP BY 1, 2'; return $sql if ($DB_TYPE eq 'Postgres'); - $sql =~ s/::int4//g; + $sql =~ s/::int8//g; return $sql; }