Closed ykasap closed 11 years ago
Thank you Yoshiaki! I like the patch set, but patch 3 is incompatible with the current behavior. Think about actual user. Two ways: if we think that the current behavior is crap I take the patch. Another solution is to add a new option, e.g. --normalize or --per-second
What do you think?
I have a mixed feeling about it.
Actually I'm familiar with per-second value and other software I know (MRTG, munin etc) all uses per-second value for throughput, so I was surprised when I realized the values from captcp wasn't normalized when I used -s option (and I misinterpreted the resulted graph for a while).
On the other hand, if a user wants per-minute value, he can use "-s 60" and see what he wants with the current behavior.
So maybe it is better to make it as an option. I prefer --per-second because --normalize seems a bit ambiguous, but not a strong preference.
Ok, than we take the later approach - make it explicit. Yoshiaki can you provide a patch for "--per-second" feature? Another idea on top of this: we drop a warning when this option is not activated (e.g. "warning: graph is scaled to byte/!second" (or something more understandable).
I'll try to make a patch... Actually I'm a newbie of git/github, so I'm sorry if I break something (still googling how to revise my pull request). Do you think the following option and its description acceptable?
-p, --per-second data is normalized as per-second average
Yes, the description is perfect. You can open a new pull request - just delete your last commit (via reset --hard, commit 01a2fc3), work out the new feature and re-submit.
Hmm, it seems that this pull-request is also updated after I revised my topic branch and did "git push --force".
Thank you Yoshiaki!
I noticed some questionable behavior in throughput module and want to fix them.