Bug 1218150

Summary: Calltime metrics sort does not work properly
Product: [Other] RHQ Project Reporter: bkramer <bkramer>
Component: MonitoringAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.12CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1218129    
Attachments:
Description Flags
screen shot that shows incorrectly sorted values; none

Description bkramer 2015-05-04 09:45:53 UTC
Created attachment 1021613 [details]
screen shot that shows incorrectly sorted values;

Description of problem:

In Calltime page, some values are displayed in ms and others in s. When using sort a column option, RHQ sorts the values as strings which gives a wrong result (see attached screen shot).

Version-Release number of selected component (if applicable):
RHQ 4.12

How reproducible:
Always

Steps to Reproduce:

1. Configure Response time metrics or just simply navigate to RHQ Server -> Deployments -> rhq.ear -> Subdeployments -> coregui.war -> web -> Monitoring -> Schedules and enable "Response Time" metric.

2. For the same resource, navigate to Monitoring -> Calltime and wait for the collected data to be displayed;

3. Click on "Total Time" (make sure that there are metrics shown in s(seconds) and ms (miliseconds)) and then click on the arrow next to the "Total Time" column;

Actual results:
Values are sorted but as strings so the "Total Time" will show:
3.0 ms
3.5 s
4.0 ms
4.0 ms
4.5 s
5.0 ms
...

Expected results:
Values should be sorted properly:
3.0 ms
4.0 ms
4.0 ms
5.0 ms
...
3.5 s
4.5 s
...


Additional info:
see attached screen shot - calltime_metrics.png.