From e713f8a285ac58ccd2be2829f9856018d42d9fdb Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 7 Apr 2015 10:20:43 +1000 Subject: [PATCH] php - have an avg line for each worker --- pool/page.php | 5 ++--- pool/page_usperf.php | 10 +++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pool/page.php b/pool/page.php index 4d4c3a69..86a241c0 100644 --- a/pool/page.php +++ b/pool/page.php @@ -98,9 +98,8 @@ for(var i=0;i0){gss(c,'red');var y=(av-y0)/(y1-y0); -gbe(c,0,y);gln(c,1,y);gst(c); -var t=''+av.toFixed(2)+'av';gfz(c,1,y,1,0,t,'red','left')} +for(var j=1;j0){gss(c,'red');var y=(av[j-1]-y0)/(y1-y0);gbe(c,0,y);gln(c,1,y);gst(c); +var t=''+av[j-1].toFixed(2)+'av';gfz(c,1,y,1,0,t,cols[j-1],'left')}} if(c['tkey']){var col,hrl=c['hrs'].length;for(var i=0;i