tylkas

Bug in Zabbix 2.1.6

Oct 22nd, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.69 KB | None | 0 0
  1. diff --git a/frontends/php/api/classes/CHistory.php b/frontends/php/api/classes/CHistory.php
  2. index e1a2292..11f4432 100644
  3. --- a/frontends/php/api/classes/CHistory.php
  4. +++ b/frontends/php/api/classes/CHistory.php
  5. @@ -175,7 +175,7 @@ class CHistory extends CZBXAPI {
  6.                 // countOutput
  7.                 if (!is_null($options['countOutput'])) {
  8.                         $options['sortfield'] = '';
  9. -                       $sqlParts['select'] = array('count(DISTINCT h.hostid) as rowscount');
  10. +                       $sqlParts['select'] = array('count(DISTINCT h.clock) as rowscount');
  11.  
  12.                         // groupCount
  13.                         if (!is_null($options['groupCount'])) {
Advertisement
Add Comment
Please, Sign In to add comment