Skip to content

Use -l (raw mode) same as -p (split) mode #559

Description

@eakteam

@rewolff I'm stilll stucked 😆 ....

Now the -p (split) mode works perfectly but since it uses snprintf nothing writes to stdout and I'm unable to read data from shell process using inputstreamreader from Android in my case....

The -l (raw) mode works OK in my case but it doesn't display same data as split mode :

This is how split mode displays

snprintf(newLine, sizeof(newLine), "%s %d %d %d %.1f %.1f %.1f",
         name, net_loss(at), net_returned(at), net_xmit(at),
         net_best(at) / 1000.0, net_avg(at) / 1000.0,
         net_worst(at) / 1000.0);

But if i change snprintf to printf and after fflush(stdout); it fill screen with random data without ordering or something, just can't use it that way...

Can you please help me how to make -l (--raw) mode modify to display the same data like in the same line:

position, host, net_loss, net_returned, net_xmit, net_best, net_avg, net_worst ...... etc.

I really need help for one project of mine but can't write C code myself and i have 15 days strugling with it 😆 .....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions