]> jfr.im git - irc/quakenet/newserv.git/blobdiff - nterfacer/nterfacer_chanstats.c
fixes for clang
[irc/quakenet/newserv.git] / nterfacer / nterfacer_chanstats.c
index eec1c0cb2bc9fd1807da150d5ff5b9b7a83039b1..fae8cde6243301f2df94eb3367200f1f51e255cd 100644 (file)
@@ -34,7 +34,7 @@ int handle_chanstats(struct rline *li, int argc, char **argv) {
   int i,j,k,l;
   int tot,emp;
   int themax;
-  float details[13];
+  float details[14];
   
   cip=findchanindex(argv[0]);
   
@@ -106,7 +106,7 @@ int handle_chanstats(struct rline *li, int argc, char **argv) {
   for(j=2;j<14;) {
     ri_append(li, "%.1f", details[j++]);
     ri_append(li, "%.1f%%", details[j++]);
-    ri_append(li, "%d%%", details[j++]);
+    ri_append(li, "%f%%", details[j++]);
   }
 
   return ri_final(li);