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

minor contrib/suggestion: timestamp #17

Open
RootlessAgrarian opened this issue Nov 2, 2017 · 1 comment
Open

minor contrib/suggestion: timestamp #17

RootlessAgrarian opened this issue Nov 2, 2017 · 1 comment

Comments

@RootlessAgrarian
Copy link

I have made a small hack to prettyping which imho renders it way more useful. I leave pp running for hours at a time to watch the performance of the first hop to my (radio) repeater. when I see disruptions (lost packets, long turnarounds) in the history I want to know when they happened; so I added a timestamp at the end of each line.

                       if ( IS_PRINTING_DOTS ) {
                                # HACK, add time stamp to end of each line!
                                printf(system("date \"+ %m.%d.%H:%M\""))
                                # printf( "\n" )
                        }

so the end of a typical line for me is now (example):

▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ 11.02.14:36

unfortunately I don't understand the code quite well enough to make this behave correctly under all circumstances: when the last char of a line is a red bang (lost packet), for some reason I get an extra linefeed and 2 timestamps. the first timestamp is in red (same text formatting as the bang) and then there is a regular (green) timestamp on a line by itself. this is not bothering me much at present :-) since very rarely is there a bang as the last char of the line.

I'd really appreciate it if some future release, someday, had a new flag --timestamp and implemented my crude hack more cleanly so that it doesn't disrupt the output format no matter what the final char of the line is.

@traisjames
Copy link

It may be 2022 but as someone who just discovered this program I love this idea. I already have my call for Prettyping to do a new line every two minutes but this would greatly help I think.

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