Ticket #2140 (closed Bugs: fixed)

Opened 6 years ago

Last modified 6 years ago

Warning: Division by zero

Reported by: ThomasHawk_ Assigned to: gregmac
Priority: minor Milestone: 2.3
Component: FreePBX System Status Version: 2.3-branch
Keywords: Cc:
Confirmation: Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

I have no swap in my system and in the dashboard I have the error(warning) :

Warning: Division by zero in /srv/www/html/admin/modules/dashboard/phpsysinfo/class.Linux.inc.php on line 477

Change History

07/23/07 13:24:56 changed by p_lindheimer

  • owner changed from RobThomas to gregmac.
  • component changed from - choose - to FreePBX System Status.

07/23/07 15:20:43 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

07/23/07 15:21:02 changed by p_lindheimer

r4512 also

07/23/07 21:40:29 changed by ThomasHawk_

  • status changed from closed to reopened.
  • resolution deleted.

Fix don't work.

value of $results['swap']['total'] is "0 " and not "0". To correct the bug change :

if ($results['swap']['total']) {

to

if ($results['swap']['total']!=0) {

07/25/07 19:46:52 changed by p_lindheimer

  • status changed from reopened to closed.
  • resolution set to fixed.

should be fixed in the latest framework update.

if (trim($results['swap']['total'])) {

07/25/07 19:47:25 changed by p_lindheimer

oops I meant in the latest dashboard update