<div dir="ltr">Hi,<div><br></div><div style>I also agree that it makes most sense to have it formatted by format_timespan. I don't think we should have 2 different outputs (if on tty). I think it will only be confusing. If no one gets to it before me, I will have it replaced with format_timespan sometime in the close future :).</div>

<div style><br></div><div style>Thanks.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 5, 2013 at 5:58 PM, Zbigniew Jędrzejewski-Szmek <span dir="ltr"><<a href="mailto:zbyszek@in.waw.pl" target="_blank">zbyszek@in.waw.pl</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, Apr 05, 2013 at 05:44:34PM +0200, Lennart Poettering wrote:<br>
> On Tue, 02.04.13 18:52, Umut Tezduyar (<a href="mailto:umut@tezduyar.com">umut@tezduyar.com</a>) wrote:<br>
><br>
> > +                if (arg_cpu_type == CPU_PERCENT)<br>
> > +                        if (g->cpu_valid)<br>
> > +                                printf(" %6.1f", g->cpu_fraction*100);<br>
> > +                        else<br>
> > +                                fputs("      -", stdout);<br>
> >                  else<br>
> > -                        fputs("      -", stdout);<br>
> > +                        printf(" %*"PRIu64, maxtcpu, g->cpu_usage)<br>
><br>
> I wonder if this is something where format_timespan() would be<br>
> useful?<br>
><br>
> Or do you want to process this further and thus want a raw value? For<br>
> humans the result of format_timespan() should be a lot more useful<br>
> though...<br>
</div></div>I think it should use format_timespan() when !on_tty(). It's mostly<br>
unusable now, apart from a slight comic effect:<br>
<br>
/                             1109 2070853593984205        -        -        -<br>
/user/zbyszek/9                747                0        -        -        -<br>
<br>
Zbyszek<br>
</blockquote></div><br></div>