Skip to content

fix wrong implementaion of parsing values - #4

Open
kylezh wants to merge 1 commit into
kimor79:masterfrom
kylezh:dev
Open

fix wrong implementaion of parsing values#4
kylezh wants to merge 1 commit into
kimor79:masterfrom
kylezh:dev

Conversation

@kylezh

@kylezh kylezh commented Mar 2, 2015

Copy link
Copy Markdown

The old implementaion didn't follow
https://collectd.org/wiki/index.php/Binary_protocol

This patch fixes it.

Signed-off-by: Kai Zhang zhangk1985@gmail.com

The old implementaion didn't follow
https://collectd.org/wiki/index.php/Binary_protocol

This patch fixes it.

Signed-off-by: Kai Zhang <zhangk1985@gmail.com>
@kimor79

kimor79 commented Mar 4, 2015

Copy link
Copy Markdown
Owner

Thanks. I'll test this out

@kimor79

kimor79 commented Mar 7, 2015

Copy link
Copy Markdown
Owner

The tests aren't passing with this change:

$ go test github.com/kimor79/gollectd
--- FAIL: TestPackets (0.00 seconds)
    gollectd_test.go:144: i = 0: Unknown value type
    gollectd_test.go:144: i = 2: Unknown value type
    gollectd_test.go:144: i = 3: Unknown value type
FAIL
FAIL    github.com/kimor79/gollectd 0.007s

@kylezh

kylezh commented Mar 7, 2015

Copy link
Copy Markdown
Author

I have noticed this too. This is strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants