diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-08-03 12:44:14 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-08-03 12:44:14 +0000 |
| commit | fd2858e086034e8c5b1ffa7320d19e0f5c948017 (patch) | |
| tree | 7450dc452eb18807b29f90d08ac2bcc4ee0e2ad9 /frontends/php/include/classes.inc.php | |
| parent | 7d77c9ce0800352701f414d200d9d51ec7323753 (diff) | |
- PostreSQL related fixes (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@885 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes.inc.php')
| -rw-r--r-- | frontends/php/include/classes.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/classes.inc.php b/frontends/php/include/classes.inc.php index 4c82e47f..4e27760a 100644 --- a/frontends/php/include/classes.inc.php +++ b/frontends/php/include/classes.inc.php @@ -286,7 +286,7 @@ } $str=substr($str,0,strlen($str)-1); - $sql="select itemid,round(900*((clock+$z)%($p))/($p)) as i,count(*) as count,avg(value) as avg,min(value) as min,max(value) as max from history where itemid in ($str) and clock>=".$this->from_time." and clock<=".$this->to_time." group by itemid,round(900*((clock+$z)%($p))/($p))"; + $sql="select itemid,round(900*((clock+$z)%($p))/($p),0) as i,count(*) as count,avg(value) as avg,min(value) as min,max(value) as max from history where itemid in ($str) and clock>=".$this->from_time." and clock<=".$this->to_time." group by itemid,round(900*((clock+$z)%($p))/($p),0)"; // echo $sql; $result=DBselect($sql); |
