Anonymous | Login | Signup for a new account | 2021-01-25 13:48 GMT | ![]() |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001955 | SiT! | dashboard | public | 2014-10-15 17:02 | 2015-04-25 14:17 | ||||
Reporter | dipohl | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | Linux | OS | Linux | OS Version | 2.6+later | ||||
Product Version | 3.67 LTS | ||||||||
Target Version | Fixed in Version | Current SVN | |||||||
Summary | 0001955: Division by zero in dashboard_my_incidents.php | ||||||||
Description | From SiT! error log: 2014-10-15T17:54:25+02:00 ajaxdata.php Warning [2] Division by zero (in line 215 of file dashboard_my_incidents.php) 2014-10-15T17:54:25+02:00 ajaxdata.php Warning [2] Division by zero (in line 215 of file dashboard_my_incidents.php) 2014-10-15T17:54:31+02:00 ajaxdata.php Warning [2] Division by zero (in line 87 of file dashboard_my_incidents.php) 2014-10-15T17:54:31+02:00 ajaxdata.php Warning [2] Division by zero (in line 87 of file dashboard_my_incidents.php) | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
![]() |
|
dipohl (developer) 2014-10-15 17:20 |
I fixed it with the following changes: # diff dashboard_my_incidents.php dashboard_my_incidents.php.mine 87c87,89 < $i_sla_remain_percent = round((1-(($i_sla_remain/$i_sla_target)))*100); --- > if ($i_sla_target != 0) { > $i_sla_remain_percent = round((1-(($i_sla_remain/$i_sla_target)))*100); > } 215c217,219 < $i_sla_remain_percent = round((1-(($i_sla_remain/$i_sla_target)))*100); --- > if ($i_sla_target != 0) { > $i_sla_remain_percent = round((1-(($i_sla_remain/$i_sla_target)))*100); > } |
paulh (administrator) 2015-04-25 14:16 |
r7599 fixes, thanks dipohl |
![]() |
|||
Date Modified | Username | Field | Change |
2014-10-15 17:02 | dipohl | New Issue | |
2014-10-15 17:20 | dipohl | Note Added: 0004960 | |
2015-04-25 14:16 | paulh | Note Added: 0004969 | |
2015-04-25 14:16 | paulh | Status | new => assigned |
2015-04-25 14:16 | paulh | Resolution | open => fixed |
2015-04-25 14:16 | paulh | Fixed in Version | => Current SVN |
2015-04-25 14:17 | paulh | Status | assigned => resolved |
Copyright © 2000 - 2021 MantisBT Team |