mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Fixing postgres connections munin.
This commit is contained in:
parent
35b79bcb2b
commit
6ebd175061
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ else {
|
|||
}
|
||||
|
||||
$sql = "select count(*) from pg_stat_activity ";
|
||||
$sql .= " where datname = ? and current_query like '<IDLE>%'";
|
||||
$sql .= " where datname = ? and state = 'idle'";
|
||||
print "# $sql\n" if $debug;
|
||||
$sth = $dbh->prepare($sql);
|
||||
$sth->execute($dbname);
|
||||
|
|
Loading…
Add table
Reference in a new issue