Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 126754 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-12 / +3 lines)
Line  Link Here
0
-- ../bacula-web/classes.inc    2006-03-21 16:20:14.000000000 -0500
0
++ ../bacula-web/classes.inc    2006-03-21 16:18:09.000000000 -0500
Lines 153-172 Link Here
153
                        }
153
                        }
154
                        else
154
                        else
155
                                return 0;
155
                                return 0;
156
			$dbsize->free();
156
                }
157
                }
157
                else if ( $this->driver == "pgsql") {
158
                else if ( $this->driver == "pgsql") {
158
                        $dbsize = $this->link->query("select pg_database_size('$this->dbs_name')")
159
			$database_size = 1;
159
                                or die ("classes.inc: Error query: 4");
160
                       if (PEAR::isError($dbsize))
161
                           die($dbsize->getMessage());
162
                        if ( $dbsize->numRows() ) {
163
                                while ( $res = $dbsize->fetchRow() )
164
                                        $database_size += $res[0];
165
                        }
166
                        else
167
                                return 0;
168
                }       
160
                }       
169
        $dbsize->free();
170
        return $database_size;  
161
        return $database_size;  
171
        }
162
        }
172
163

Return to bug 126754