curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: printf less digits/decimals in timing statistics counters

From: Nicholas Chambers <nchambers_at_lightspeedsystems.com>
Date: Tue, 31 Jan 2017 17:59:37 -0600

You could probably use your shell to shorten it.

On 1/31/17 5:45 PM, Beat Albisser wrote:
> 3 reasons for curl print-out timing counters with less than 6 decimals:
>
> - the logfiles with containing timing values are now 2 times larger
> than before and there is no need for microseconds
> - I have to investigate and rework some nagios parsing scripts which
> expect 3 decimals
> - I have to do some tests, to be sure nagios can handle 6 decimals.
>
> Am 31.01.2017 14:08 schrieb "Daniel Stenberg" <daniel_at_haxx.se
> <mailto:daniel_at_haxx.se>>:
>
> On Mon, 30 Jan 2017, Beat Albisser wrote:
>
> since there are more than 3 digits/decimals (6 instead of 3)
> in timing statistics counters (see
> https://github.com/curl/curl/pull/1106).
> <https://github.com/curl/curl/pull/1106%29.>..
>
> st there any easy solution to printf the timing statistics
> counters (e.g. time_total) with 3 decimals instead of 6 in
> curl v 7.52.1?
>
>
> Nope. We discussed the possibility of adding that in the issue you
> refer to, but in the end I didn't think there was any compelling
> reason to complicate matters when we didn't have anyone
> specifically expressing a reason or desire for it.
>
> Can you help us understand why you need/want this?
>
> --
>
> / daniel.haxx.se <http://daniel.haxx.se>
> -----------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
> <https://cool.haxx.se/list/listinfo/curl-users>
> Etiquette: https://curl.haxx.se/mail/etiquette.html
> <https://curl.haxx.se/mail/etiquette.html>
>
>
>
> -----------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
> Etiquette: https://curl.haxx.se/mail/etiquette.html

-- 
Nicholas Chambers
Technical Support Specialist
nchambers_at_lightspeedsystems.com
1.800.444.9267
www.lightspeedsystems.com

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-02-01