X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2Fbriskin5%2Fstatadm.php;h=4eb267be1df08c83e3efd4eb405219e91670bf60;hp=f1c7bfcfae1cf83479494811131084eee1365891;hb=df1bea694fbed036ce6764404037bb19f99f3688;hpb=f2074a7a29e3d8f60c605b7e4ab6de3a00234665 diff --git a/web/briskin5/statadm.php b/web/briskin5/statadm.php index f1c7bfc..4eb267b 100644 --- a/web/briskin5/statadm.php +++ b/web/briskin5/statadm.php @@ -341,7 +341,8 @@ function main_pgsql($curtime) WHERE m.tcode = %d AND m.code = g.mcode AND ( (u.type & (CAST (X'ff0000' as integer))) <> (CAST (X'800000' as integer)) ) AND g.tstamp > to_timestamp(%d) AND g.tstamp <= to_timestamp(%d) AND - p.ucode = u.code AND p.gcode = g.code + p.ucode = u.code AND p.gcode = g.code AND + p.pts != 0 GROUP BY u.code, u.login ORDER BY (float4(sum(p.pts)) * 100.0 ) / float4(count(p.pts)) DESC, count(p.pts) DESC",