[icinga-checkins] icinga.org: icinga-web/mhein/default: * Fixed wrong calculation duration ( thx to silence_le) (#fixes 2057)

git at icinga.org git at icinga.org
Thu Nov 17 16:47:10 CET 2011


Module: icinga-web
Branch: mhein/default
Commit: 1d3feedc689c7d86eec9412049c2efd6875d1815
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=1d3feedc689c7d86eec9412049c2efd6875d1815

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Wed Nov 16 19:19:13 2011 +0100

* Fixed wrong calculation duration (thx to silence_le) (#fixes 2057)

---

 .../models/ColumnDisplay/FormatModel.class.php     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/modules/Cronks/models/ColumnDisplay/FormatModel.class.php b/app/modules/Cronks/models/ColumnDisplay/FormatModel.class.php
index d82e44d..59702e5 100644
--- a/app/modules/Cronks/models/ColumnDisplay/FormatModel.class.php
+++ b/app/modules/Cronks/models/ColumnDisplay/FormatModel.class.php
@@ -67,7 +67,7 @@ class Cronks_ColumnDisplay_FormatModel extends CronksBaseModel implements AgaviI
                     if ($diff==$m) {
                         continue;
                     } else {
-                        $out[] = ceil($diff/$v).$k;
+                        $out[] = floor($diff/$v).$k;
                         $diff = $m;
                     }
 





More information about the icinga-checkins mailing list