Skip to content

Commit

Permalink
Bugfix for factor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikesch-mp committed Nov 7, 2016
1 parent 8661025 commit 7e8da11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions application/controllers/GlobedataController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public function indexAction()
'host_name',
'service_display_name',
'service_host_name',
'service_display_name',
'service_state'))
->where('service_host_name', $row->host_name);

Expand Down Expand Up @@ -70,7 +69,7 @@ public function indexAction()
unset($smallarray['geolocation']);
arsort($smallarray);
foreach ($smallarray as $key => $value ) {
$jsonstring .= $geolocation . "," . number_format($value * $factor, 2) ."," . $key . ",";
$jsonstring .= $geolocation . "," . number_format("$value" * "$factor", 4) ."," . $key . ",";
}
}
$jsonstring = rtrim($jsonstring, ",") . "]";
Expand Down
1 change: 0 additions & 1 deletion icingaexchange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ releases:
url: "https://github.com/Mikesch-mp/icingaweb2-module-globe/archive/v1.0.0.zip"
description: Module file for Icinga Web 2
checksum: bae750d0a7bc18cc3ba09458a62da635

0 comments on commit 7e8da11

Please sign in to comment.