summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/chart.php')
-rw-r--r--frontends/php/chart.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/frontends/php/chart.php b/frontends/php/chart.php
index 8a908604..3b569e71 100644
--- a/frontends/php/chart.php
+++ b/frontends/php/chart.php
@@ -48,7 +48,14 @@
$host=get_host_by_hostid($this->item["hostid"]);
$this->item["host"]=$host["host"];
- $this->date_format="H:i";
+ if($this->period<=3600)
+ {
+ $this->date_format="H:i";
+ }
+ else
+ {
+ $this->date_format="m.d H:i";
+ }
}