Skip to content

Question about code #7

@jblaine

Description

@jblaine

What is this intending to do?

values = pieces[1].split(",")[:-1]

It strips the last data value returned from Graphite. I don't think that's what you wanted to do.

>>> myvalues = [8,9,10]
>>> myvalues[:-1]
[8, 9]
>>>

I think you were intending to strip the newline character from the graphite data line??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions