<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 1 Dec 2021 at 14:49, Antony Antony <<a href="mailto:antony@phenome.org">antony@phenome.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Nov 27, 2021 at 07:23:00PM -0500, Andrew Cagney wrote:<br>
> <br>
> <br>
>         One thing decide as group is how to represent big number (2^64) bytes<br>
>         and<br>
>         packets, especially the default 2^64  will appear in "ipsec status: <br>
>         output.<br>
>          18446744073709551615 look ugly:)<br>
> <br>
> <br>
>     There's readable_humber() but that would need work.<br>
>     Conversely is there something to convert things like 100gb back to bytes.<br>
<br>
I added parser support, in my branch, for 100G to a number.<br>
<br>
I think the parser only u32. So<br>
I don't think parser support 18446744073709551615. <br></blockquote><div><br></div><div>Yea. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> and of course long after the code was written, the suffixes were standardised<br>
> by IEC <a href="http://et.al" rel="noreferrer" target="_blank">et.al</a>. ('99) and we're now meant to use GiB <a href="http://et.al" rel="noreferrer" target="_blank">et.al</a>. https://<br>
> <a href="http://en.wikipedia.org/wiki/Binary_prefix" rel="noreferrer" target="_blank">en.wikipedia.org/wiki/Binary_prefix</a> :-)<br>
<br>
So far I have KMGTE. I will change change print KiB, GiB,... that is easy.  <br>
And may be add support for parsing 100GiB.<br></blockquote><div><br></div><div>Nice! <br></div></div></div>