Ad Widget

Collapse

PATCH : stime not use in chart.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SLMitch
    Member
    • May 2006
    • 39

    #1

    PATCH : stime not use in chart.php

    There are this bug since long time, and are not yet fixed in CVS version of zabbix.

    I submit again my patch, for zabbix-1.1.3

    Code:
    diff -ruwBb zabbix-1.1.3-orig/frontends/php/chart.php zabbix-1.1.3/frontends/php/chart.php
    --- zabbix-1.1.3-orig/frontends/php/chart.php   2006-10-25 23:29:59.000000000 +0200
    +++ zabbix-1.1.3/frontends/php/chart.php        2006-10-26 00:14:23.000000000 +0200
    @@ -43,6 +43,11 @@
            {
                    $graph->setBorder(0);
            }
    +       if(isset($_REQUEST["stime"]))
    +        {
    +                 $graph->setSTime($_REQUEST["stime"]);
    +        }
    +
            $graph->addItem($_REQUEST["itemid"], GRAPH_YAXIS_SIDE_RIGHT, CALC_FNC_ALL);
    
            $graph->Draw();
  • dantheman
    Senior Member
    • May 2006
    • 209

    #2
    They aren't using the sourceforge CVS, they have an internal one that currently isn't publically accessible, that might be why you aren't seeing it be updated in the CVS..

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Thanks for reporting and the patch. Fixed!
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      Working...