Parcourir la source

[getGraphsFDN] Ajout de la moyenne par user de FDN

Sebastien Badia il y a 11 ans
Parent
commit
ca01a60222
2 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 3 0
      getGraphsFDN/base.html
  2. 2 0
      getGraphsFDN/getGraphsFDN.pl

+ 3 - 0
getGraphsFDN/base.html

@@ -112,6 +112,9 @@
 	<h2>Les 12 derniers mois</h2>
 	<img src="yearly.png" alt="yearly" />
 
+	<h2>Bande passante moyenne par utilisateur de FDN</h2>
+	<img src="moyenne.png" alt="moyenne" />
+
 	<h2>Bande passante totale de FDN (prestataire de LDN)</h2>
 	<img src="total.png" alt="total" />
 

+ 2 - 0
getGraphsFDN/getGraphsFDN.pl

@@ -26,6 +26,7 @@ my $adh_pwd = '';
 # Abonne concerne
 my $prenom = $ARGV[0];
 my $nom = $ARGV[1];
+
 # Nom composes, voir https://repo.ldn-fai.net/redmine/issues/100
 $nom =~ s/ /./g;
 
@@ -51,6 +52,7 @@ $mech->get($graphs_uri);
 $graphs_uri =~ s/-stats/-statimg/;
 $mech->get($graphs_uri."&img=total.rrd&freq=daily", ':content_file' => "total.png");
 $mech->get($graphs_uri."&img=total-fai-locaux.rrd&freq=daily", ':content_file' => "failocaux.png");
+$mech->get($graphs_uri."&img=moyenne&freq=daily", ':content_file' => "moyenne.png");
 
 # Recuperation des graphs individuels
 $graphs_uri .= "&img=$prenom.$nom%40fdn.nerim.rrd&freq=";