Browse Source

ratio abo/adh

Daniel Jakots 10 years ago
parent
commit
052b846bce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      json-file.pl

+ 1 - 1
json-file.pl

@@ -158,7 +158,7 @@ sub adh{
     my $filename = "/home/daga/bot-irc/wrk-dir/". $fai.".adh";
     my $fh2;
     open ($fh2, '>', $filename) or die "Impossible d'ouvrir le fichier $filename en écriture";
-    print $fh2 $nb_adh ." adhérent·e·s (et ".$nb_abo." abonné·e·s). Cela représente respectivement ".
+    print $fh2 $nb_adh ." adhérent·e·s (et ".$nb_abo." abonné·e·s). C'est un ratio de ".sprintf("%.1f", $nb_abo / $nb_adh * 100)."%. Cela représente ".
 	sprintf("%.1f", $nb_adh / $nb_adh_ffdn_old * 100) ."% et ". sprintf("%.1f", $nb_abo / $nb_abo_ffdn_old * 100) .
 	"% des adhésions et des abonnements dans la fédération.\n";
     close $fh2;