Giter Site home page Giter Site logo

Comments (7)

elfring avatar elfring commented on August 15, 2024

πŸ’­

from mtr.

rewolff avatar rewolff commented on August 15, 2024

I think the default "field list" contains "spacer" so it prints that field in the results. And it puts a header on top. It takes a lot of code to fix that and it is currently "ok" in that an empty field prints with an empty header.

from mtr.

elfring avatar elfring commented on August 15, 2024

… it is currently "ok" in that an empty field prints with an empty header.

I disagree with this detail because I observed that the column numbers would be different between the header and subsequent record sets.

from mtr.

rewolff avatar rewolff commented on August 15, 2024

Make it easy for me to verify that. Paste output here.

from mtr.

elfring avatar elfring commented on August 15, 2024

Do you find a test command (like the following) helpful for further clarification of involved issues? πŸ€”

Sonne:…/Bau/mtr/console # my_file=/tmp/mtr-test-20220914.csv && ./mtr --report-cycles 2 --csv localhost > ${my_file} && head -n 1 ${my_file} | tr ',' '\n' | wc -l && tail -n 1 ${my_file} | tr ',' '\n' | wc -l
…

from mtr.

mroe1234 avatar mroe1234 commented on August 15, 2024

I'm going to agree that it is /not/ ok to have empty fields. the CSV output is useful for programmatic uses and having a literal space as a header 1. doesn't even really make sense to begin with, and 2. can cause weirdness with tools farther down the pipeline.

from mtr.

rewolff avatar rewolff commented on August 15, 2024

mtr-csv

Stuff seems to align correctly. There is just a , at the end of the header line.

If you provide a patch to remove that , I'll accept it.
If you provide a patch to remove the empty header and "0" column below it, I'll accept it.

from mtr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.