Bug 737542

Summary: limit host agent load values to 2 decimal points
Product: Red Hat Enterprise Linux 6 Reporter: Dave Johnson <dajohnso>
Component: matahariAssignee: Russell Bryant <rbryant>
Status: CLOSED NOTABUG QA Contact: Dave Johnson <dajohnso>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2CC: matahari-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-12 14:28:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dave Johnson 2011-09-12 13:39:43 UTC
Description of problem:
========================================
Query the host agent and more often than not, at least one of the values rounds to 10 decimal points.

    load                {'1': 0.050000000000000003, '5': 0.02, '15': 0.0}


Version-Release number of selected component (if applicable):
================================================================================
v0.4.2-2

How reproducible:
========================================
100%

Comment 2 Russell Bryant 2011-09-12 14:28:09 UTC
This is expected behavior.  The load average values are of type double (a floating point number).  It is not unexpected to see a weird looking value like that.  If you need rounding, it will have to be done locally.