Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it always panic #4

Open
beaquant opened this issue Dec 14, 2019 · 2 comments
Open

it always panic #4

beaquant opened this issue Dec 14, 2019 · 2 comments

Comments

@beaquant
Copy link

it always panic

$ seq 4000 | awk 'BEGIN{OFS="\t"; print "x","sin(x)","cos(x)", "rand(x)", "rand(x)", "rand(x)"}{x=$1/10; print x,sin(x),cos(x),rand(x),rand(x),rand(x); system("sleep 0.02")}'  | ./datadash
$ seq 4000 | awk 'BEGIN{OFS="\t"; print "x","sin(x)"}{x=$1/10; print x,sin(x); system("sleep 0.02")}'  | ./datadash --label-mode time
goroutine 65 [running]:
github.com/keithknott26/datadash.periodic(0x12fd8c0, 0xc00010e0c0, 0x2625a00, 0xc0001904e0)
	/Users/eric/go/src/github.com/keithknott26/datadash/row.go:589 +0x17b
created by github.com/keithknott26/datadash.(*Row).createSparkLine
	/Users/eric/go/src/github.com/keithknott26/datadash/row.go:392 +0x12e

@Clem-
Copy link

Clem- commented Sep 21, 2020

Same issue with samples provided in the repo. It seems to occur as soon as the file/stream is at the end.

I managed to get rid of this issue by commenting this line.

@keithknott26
Copy link
Owner

@beaquant while not an ideal fix, i've committed the suggested change to the repo, and thanks for your help @Clem- .

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

No branches or pull requests

3 participants