From 8d7e60aecb67ecbff3f35706a34e164ed2a4d97a Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 7 Apr 2015 11:02:44 +1000 Subject: [PATCH] php - correct avg calculation --- pool/page_usperf.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pool/page_usperf.php b/pool/page_usperf.php index 4bcb2d8b..b5a962b0 100644 --- a/pool/page_usperf.php +++ b/pool/page_usperf.php @@ -6,10 +6,11 @@ $g = "function gdrw(c,d,cbx){gc(c);ghrs(c);gopt(c,cbx); gfs(c,'white');gss(c,'#0000c0');glw(c,2);gbd(c); var rows=d['rows'],ymin=-1,ymax=0,xmin=-1,xmax=0,tda=[]; var w=d['arp'].split(',');var cols=d['cols'].split(','); -for(var i=0;is){xmin=s}if(xmaxths){ymin=ths}if(ths>ymax)ymax=ths;document.getElementById('worker'+j).value=d[pre+'worker']} +for(var j=1;js){xmin=s}if(xmaxths){ymin=ths}if(ths>ymax)ymax=ths;document.getElementById('worker'+j).value=d[pre+'worker']} } -for(var i=0;i