Skip to content

Commit

Permalink
Fix mogstats for all non-postgres DB's :(
Browse files Browse the repository at this point in the history
I doofused on the previous commit
  • Loading branch information
dormando committed Jun 26, 2012
1 parent 92ebfa0 commit 2fada6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mogstats
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2fada6b

Please sign in to comment.