curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: printf less digits/decimals in timing statistics counters

From: Beat Albisser <b.albisser_at_gmail.com>
Date: Wed, 1 Feb 2017 00:45:09 +0100

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>:

> 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)...
>>
>> 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
> -----------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
> Etiquette: https://curl.haxx.se/mail/etiquette.html
>

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