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

--csv doesn't quite work due to extra newline #35

Open
flotwig opened this issue May 16, 2021 · 1 comment
Open

--csv doesn't quite work due to extra newline #35

flotwig opened this issue May 16, 2021 · 1 comment

Comments

@flotwig
Copy link

flotwig commented May 16, 2021

Neat tool! Beats the hell out of trying to do a CLI speedtest with curl.


I'm trying to use the --csv option in a cron job like so to build up historical data:

./librespeed-cli --csv >> speedtests.csv

However, the contents of my speedtests.csv file are as follows:

Timestamp,Server Name,Address,Ping,Jitter,Download,Upload,Share,IP

2021-05-16T14:20:50.645951073-04:00,"Atlanta, United States (Clouvider)",http://atl.speedtest.clouvider.net/backend,xxx

2021-05-16T14:21:01.390014732-04:00,"Atlanta, United States (Clouvider)",http://atl.speedtest.clouvider.net/backend,xxx

An extra newline in the output is messin' up my csv. Seems to be \n\n instead of just \n.


Workaround for shell scripts: https://stackoverflow.com/a/12525977/3474615

@czechbol
Copy link
Contributor

czechbol commented Apr 9, 2023

I don't seem to be able to reproduce this with the current version. Is this still an issue?

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

2 participants