SiT! Bugs

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001955SiT!dashboardpublic2014-10-15 17:022015-04-25 14:17
Reporterdipohl 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformLinuxOSLinuxOS Version2.6+later
Product Version3.67 LTS 
Target VersionFixed in VersionCurrent SVN 
Summary0001955: Division by zero in dashboard_my_incidents.php
DescriptionFrom 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)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0004960)
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);
> }
User avatar (0004969)
paulh (administrator)
2015-04-25 14:16

r7599 fixes, thanks dipohl

- Issue History
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 - 2017 MantisBT Team
Powered by Mantis Bugtracker