← Back to team overview

graphite-dev team mailing list archive

Re: [Question #208654]: nPercentile does not render

 

Question #208654 on Graphite changed:
https://answers.launchpad.net/graphite/+question/208654

Dennis gave more information on the question:
plotting:
nPercentile(acct_in.KPN_Transit.0-bytes,"95")

result:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/opt/graphite/webapp/graphite/render/views.py", line 104, in renderView
    seriesList = evaluateTarget(requestContext, target)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 10, in evaluateTarget
    result = evaluateTokens(requestContext, tokens)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 21, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 29, in evaluateTokens
    return func(requestContext, *args)
  File "/opt/graphite/webapp/graphite/render/functions.py", line 1284, in nPercentile
    perc_val = _getPercentile(s_copy, n)
  File "/opt/graphite/webapp/graphite/render/functions.py", line 1252, in _getPercentile
    fractionalRank = (n/100.0) * (len(sortedPoints) + 1)
TypeError: unsupported operand type(s) for /: 'str' and 'float'

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.