Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1371893

Summary: sparkline for CPU shows some changes, but tooltip says 0%
Product: [oVirt] ovirt-engine-dashboard Reporter: Lucie Leistnerova <lleistne>
Component: GeneralAssignee: Scott Dickerson <sdickers>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bugs, gshereme, mgoldboi, oourfali, pstehlik, sdickers, sradco
Target Milestone: ovirt-4.0.6Flags: rule-engine: ovirt-4.0.z+
mgoldboi: planning_ack+
oourfali: devel_ack+
pstehlik: testing_ack+
Target Release: 1.0.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 07:25:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
sparkline CPU
none
still_0 none

Description Lucie Leistnerova 2016-08-31 11:43:55 UTC
Created attachment 1196323 [details]
sparkline CPU

Description of problem:
on sparkline for CPU are drawn some changes, but the tooltip says 0%

Version-Release number of selected component (if applicable):
ovirt-engine-dashboard-1.0.3-1.el7ev.x86_64

How reproducible: always


Steps to Reproduce:
1. install new engine or stop all VM for some time (for few hours)
2. create new VM with no OS, assign a disk and run it
3. wait 15-20 minutes and reload the Dashboard

Actual results: sparkline changes and tooltip shows 0%


Expected results: tooltip shows 0.x% or <1%


Additional info:
I assume that the last day values are counted as avarage for sample values for every X minutes and so that is not equal to 1, but its confusing to see always 0%, even if the sparkline changes

Comment 1 Pavel Novotny 2016-08-31 13:59:12 UTC
*** Bug 1371919 has been marked as a duplicate of this bug. ***

Comment 2 Lucie Leistnerova 2016-10-27 08:07:48 UTC
for cpu usage lower than 1 still shows 0.0%

in ovirt-engine-dashboard-1.0.5-1.el7ev.x86_64

Comment 3 Red Hat Bugzilla Rules Engine 2016-10-27 08:07:54 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 4 Lucie Leistnerova 2016-10-27 08:09:11 UTC
Created attachment 1214501 [details]
still_0

Comment 5 Oved Ourfali 2016-10-27 09:51:23 UTC
Greg, can you take a look?

Comment 6 Greg Sheremeta 2016-10-28 05:33:30 UTC
Yes sir

Comment 7 Scott Dickerson 2016-10-31 21:23:17 UTC
The second patch (65925) tests if the percent to be rendered will be greater then 0% but less then 0.1%.  If it is in this range, "<0.1%" will be shown.  If the percent is 0, "0.0%" will be shown.  

This change allows easy differentiation between 0 and a value smaller then the smallest formatted value of "0.1".

Comment 9 Lucie Leistnerova 2016-12-01 13:01:04 UTC
values in cpu tooltips are OK

verified in ovirt-engine-dashboard-1.1.0-0.4.20161128git5ed6f96.el7.centos.noarch