Yaniv Dary has uploaded a new change for review.

Change subject: reports: made tooltip clearer in ccp report (#913081)
......................................................................

reports: made tooltip clearer in ccp report (#913081)

uptime and existence now have tooltip in the format:
'DDd HHh MMm' (upper case letters is the actual data)

Bug-Url: https://bugzilla.redhat.com/913081

Change-Id: I3505c6c3c0d8e6dc353d07007bb197a30890c0c3
Signed-off-by: Yaniv Dary <yd...@redhat.com>
---
M 
reports/repository_files/resources/Reports/Inventory/ccp_vm_inventory_br44_files/ccp_vm_inventory_br44_jrxml.data
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-reports refs/changes/46/12446/1

diff --git 
a/reports/repository_files/resources/Reports/Inventory/ccp_vm_inventory_br44_files/ccp_vm_inventory_br44_jrxml.data
 
b/reports/repository_files/resources/Reports/Inventory/ccp_vm_inventory_br44_files/ccp_vm_inventory_br44_jrxml.data
index 242ec60..6e79a35 100644
--- 
a/reports/repository_files/resources/Reports/Inventory/ccp_vm_inventory_br44_files/ccp_vm_inventory_br44_jrxml.data
+++ 
b/reports/repository_files/resources/Reports/Inventory/ccp_vm_inventory_br44_files/ccp_vm_inventory_br44_jrxml.data
@@ -519,7 +519,7 @@
                                     <reportElement 
uuid="a066729e-e607-4099-819d-bd4adddc9203" x="0" y="0" width="60" height="18"/>
                                     <textElement textAlignment="Right" 
verticalAlignment="Middle"/>
                                     
<textFieldExpression><![CDATA[$F{existence_time_hours}]]></textFieldExpression>
-                                    
<hyperlinkTooltipExpression><![CDATA[$F{existence_time_hours}.toString()]]></hyperlinkTooltipExpression>
+                                    
<hyperlinkTooltipExpression><![CDATA[(((($F{existence_time_hours}*60)/60)/24).intValue()).toString()
 + "d " + 
((($F{existence_time_hours}*60)/60).intValue()-((((($F{existence_time_hours}*60)/60)/24).intValue())*24)).toString()
 + "h " + (($F{existence_time_hours}*60) - 
(((($F{existence_time_hours}*60)/60).intValue()-((((($F{existence_time_hours}*60)/60)/24).intValue())*24))*60)-((((($F{existence_time_hours}*60)/60)/24).intValue())*60*24)).intValue().toString()
 + "m"]]></hyperlinkTooltipExpression>
                                 </textField>
                             </jr:detailCell>
                         </jr:column>
@@ -539,7 +539,7 @@
                                     <reportElement 
uuid="f8f139bc-082d-4221-8b25-660203e94bf3" x="0" y="0" width="53" height="18"/>
                                     <textElement textAlignment="Right" 
verticalAlignment="Middle"/>
                                     
<textFieldExpression><![CDATA[$F{vm_uptime}]]></textFieldExpression>
-                                    
<hyperlinkTooltipExpression><![CDATA[$F{vm_uptime}.toString()]]></hyperlinkTooltipExpression>
+                                    
<hyperlinkTooltipExpression><![CDATA[(((($F{vm_uptime}*60)/60)/24).intValue()).toString()
 + "d " + 
((($F{vm_uptime}*60)/60).intValue()-((((($F{vm_uptime}*60)/60)/24).intValue())*24)).toString()
 + "h " + (($F{vm_uptime}*60) - 
(((($F{vm_uptime}*60)/60).intValue()-((((($F{vm_uptime}*60)/60)/24).intValue())*24))*60)-((((($F{vm_uptime}*60)/60)/24).intValue())*60*24)).intValue().toString()
 + "m"]]></hyperlinkTooltipExpression>
                                 </textField>
                             </jr:detailCell>
                         </jr:column>


--
To view, visit http://gerrit.ovirt.org/12446
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3505c6c3c0d8e6dc353d07007bb197a30890c0c3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-reports
Gerrit-Branch: master
Gerrit-Owner: Yaniv Dary <yd...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to