From 8d33eff6e33c776b5e2aa97efe059577b717fe21 Mon Sep 17 00:00:00 2001 From: timurhai Date: Sun, 18 Apr 2021 21:27:28 +0300 Subject: [PATCH] afanasy statistics: division by zero checks added --- afanasy/statistics/favicon.ico | Bin 0 -> 17056 bytes afanasy/statistics/index.html | 4 +--- afanasy/statistics/server.php | 12 ++++++++---- 3 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 afanasy/statistics/favicon.ico diff --git a/afanasy/statistics/favicon.ico b/afanasy/statistics/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..1b8ae5e86df88c02670c3f4499c405200da8ce57 GIT binary patch literal 17056 zcmV*pKt{ibP)rE| z6Xm^s^b42|K<++mA-*5=O7}woA>FzL0my^_h-FZq8~Qi?qGP^0^m@>ztQ6! z0++Wd5Z-nGIFRu15idP|750Ng=*J(%d1FF$)A5H4K!SjF9$I6f$(+&!2=I~!-(G}{N(C{o<<=0{(ePx z9GFks0sw|%t9S`mT`hEDW1znQV0>n*%RqR$f#87#K%e-k!1F!gCozBi>V$T7O4>hF z(R|`)b9$Nppxmez05I6e6#%wI*K|0xx_UhT;l%?$@Z57ydYgdYfd#U$sqeo8;uAF<%csf`ydgBIA3^N_<YkD z!%g_vL$-9Gajjhp?cXmoTe|17z7q%$b7nhy~r5MAP8gcwejRz6{ zX(X0QI=@f+&5hGE*q-trs~B!zHr8eaqtev-{s%!cA|~_?5Iu73i?hFhQ5oLr24;{| zJlGD`S^&XT2Z9HZ?R(>a13;hCp6|JP7cWLD|5QbZ_`6xfgYKe_b>$S`__P zuTFx_x0^iJp7OQ~4a?AAR2r=0##y%4UY&g#6D$+q-~;&=zcBrTvuv@F8;nZBG7KtV zJE(*GQx#oZRt1;tF2wxRI38F40KnzT=tTdSl1@&}(r)7XtYR9KW-vFlFl=*ES=Y$7 zFN^-=qpAG2=cclSVLO-`OQX^hS;f0q#k<>6J~=r{J7@Z;V3GI_niP1T0MIx7!gv{EJ}d~New(O0BA>#(>m_2 z0{3SX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$q9 zfQF>8G6J}#J)IiY=3$6+M8VUOwKm_Ogh}^xfZPo5Fs`PUeC-tG%>dAZG}{dI@yQww z&j)in3tx^ZObYn8A+GYMu_C P00000NkvXXu0mjf!jT** literal 0 HcmV?d00001 diff --git a/afanasy/statistics/index.html b/afanasy/statistics/index.html index e109a24bb..6b722d520 100644 --- a/afanasy/statistics/index.html +++ b/afanasy/statistics/index.html @@ -3,10 +3,8 @@ AFANASY Statistics - - + - diff --git a/afanasy/statistics/server.php b/afanasy/statistics/server.php index f9533acd0..0d0ca607a 100644 --- a/afanasy/statistics/server.php +++ b/afanasy/statistics/server.php @@ -236,7 +236,8 @@ function get_jobs_table( $i_args, &$o_out) } pg_free_result($sub_result); $line['fav_name'] = $sub_name; - $line['fav_percent'] = $sub_favourite/$sub_total; + if ($sub_total > 0) + $line['fav_percent'] = $sub_favourite/$sub_total; $o_out['table'][] = $line; } @@ -304,7 +305,8 @@ function get_tasks_folders( $i_args, &$o_out) } pg_free_result($sub_result); $line['fav_service'] = $sub_name; - $line['fav_service_percent'] = $sub_favourite/$sub_total; + if ($sub_total > 0) + $line['fav_service_percent'] = $sub_favourite/$sub_total; # Get folder favorite user: $sub_query=" @@ -331,7 +333,8 @@ function get_tasks_folders( $i_args, &$o_out) } pg_free_result($sub_result); $line['fav_user'] = $sub_name; - $line['fav_user_percent'] = $sub_favourite/$sub_total; + if ($sub_total > 0) + $line['fav_user_percent'] = $sub_favourite/$sub_total; $o_out['table'][] = $line; } @@ -399,7 +402,8 @@ function get_tasks_table( $i_args, &$o_out) } pg_free_result($sub_result); $line['fav_name'] = $sub_name; - $line['fav_percent'] = $sub_favourite/$sub_total; + if ($sub_total > 0) + $line['fav_percent'] = $sub_favourite/$sub_total; $o_out['table'][] = $line; }