diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/spamd/spamd_gather_stats.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/spamd/spamd_gather_stats.php b/config/spamd/spamd_gather_stats.php index a95e2596..2fee6904 100644 --- a/config/spamd/spamd_gather_stats.php +++ b/config/spamd/spamd_gather_stats.php @@ -75,7 +75,10 @@ foreach($connect_times as $c) { echo "N:"; echo $open_connections; echo ":"; -echo round(($average_connect_time / $total_connections)); +if($total_connections == 0) + echo 0; +else + echo round(($average_connect_time / $total_connections)); exit; |