← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1241467] Re: precision of floating point metering stats is discarded unnecessarily

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1241467

Title:
  precision of floating point metering stats is discarded unnecessarily

Status in OpenStack Dashboard (Horizon):
  Fix Released
Status in OpenStack Dashboard (Horizon) havana series:
  Fix Committed

Bug description:
  Ceilometer returns aggregated statistical values as float, whereas the
  'resource usage' panel narrows to int before inserting these data into
  the line chart.

  For meters defined over a narrow range (such as cpu_util ranging from
  0.0% to 100.0%) this has the effect of unnaturally smoothening the
  graph by discarding precision.

  If it really was crucial that the line chart contain only ints, then
  the float->int conversion should be a round:

    i = int(round(f, 0))

  as opposed to narrowing cast:

    i = int(f)

  However, AFAICS there's no reason why these raw data couldn't be
  represented directly as floats in the line chart.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1241467/+subscriptions