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);