Permalink
Browse files

Fix mogstats for all non-postgres DB's :(

I doofused on the previous commit
  • Loading branch information...
1 parent 92ebfa0 commit 2fada6b70143a14127f4f8fe1cc62ff43de1eff4 @dormando dormando committed Jun 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mogstats
View
@@ -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;
}

0 comments on commit 2fada6b

Please sign in to comment.