Bug 737542 - limit host agent load values to 2 decimal points
Summary: limit host agent load values to 2 decimal points
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: matahari
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Russell Bryant
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-12 13:39 UTC by Dave Johnson
Modified: 2011-09-12 14:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-12 14:28:09 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.