You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.
This issue has been migrated from Redmine: https://dev.icinga.com/issues/3942
Created by tkoeberl on 2013-04-09 16:11:42 +00:00
Assignee: berk
Status: Resolved (closed on 2013-04-10 15:10:54 +00:00)
Target Version: 1.9
Last Update: 2013-04-10 15:10:54 +00:00 (in Redmine)
The SQL gives me back following numbers.
object_id name2 state sla
786 Search engine 0 9,999999
786 Search engine 1 0,002325
9,999999 get rounded to 10.. multiplicated by 100. That gives 1000.
Fix:
</dataset> <keyExpression><![CDATA[$F{state}.toString().replaceFirst("0", "OK").replaceFirst("1", "NOK")]]></keyExpression> <valueExpression><![CDATA[$F{sla}.setScale(5,BigDecimal.ROUND_HALF_UP).multiply(100)]]></valueExpression> <labelExpression><![CDATA[$F{sla}.setScale(5,BigDecimal.ROUND_HALF_UP).multiply(100).toString() + "%"]]></labelExpression> </pieDataset>
more info:
http://www.monitoring-portal.org/wbb/index.php?page=Thread&threadID=28243
Changesets
2013-04-10 15:09:29 +00:00 by (unknown) b7645b3
The text was updated successfully, but these errors were encountered: