From 8a63fcf532e165d77db5d6f2ba3e923b098eabde Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 14 Feb 2005 15:31:26 +0000 Subject: [PATCH] =?UTF-8?q?Modification=20du=20label=20interval=20par=20d?= =?UTF-8?q?=E9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/stats/lignes/actives.class.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/stats/lignes/actives.class.php b/htdocs/telephonie/stats/lignes/actives.class.php index 5644457728a..00eea5b38cf 100644 --- a/htdocs/telephonie/stats/lignes/actives.class.php +++ b/htdocs/telephonie/stats/lignes/actives.class.php @@ -90,8 +90,14 @@ class GraphLignesActives extends GraphLine { print $this->db->error() . ' ' . $sql; } - - $this->LabelInterval = round($num / 20,0); + $this->LabelInterval = 1; + + $a = round($num / 20,0); + + if ($a > 1) + { + $this->LabelInterval = $a; + } $this->GraphDraw($this->file, $active, $labels);