<div dir="auto">You could put a rule around it to scale the value to MB, GB, TB, or PB (or higher) to keep the value within the 1 to 999 range and display to three significant digits.<div dir="auto"><br></div><div dir="auto">That will adapt to everybody's setup for a few years.</div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 12 Nov 2018, 6:41 PM Ian Campbell <<a href="mailto:ijc@hellion.org.uk">ijc@hellion.org.uk</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 2018-11-11 at 21:53 -0600, Richard Shaw wrote:<br>
> On Sun, Nov 11, 2018 at 3:01 AM Ian Campbell <<a href="mailto:ijc@hellion.org.uk" target="_blank" rel="noreferrer">ijc@hellion.org.uk</a>><br>
> wrote:<br>
> > On Sat, 2018-11-10 at 12:45 -0600, Richard Shaw wrote:<br>
> > > I'm not good with perl/php otherwise I would give it a try, but<br>
> > since<br>
> > > Mythweb is not going away in V30, what would it take to change<br>
> > the<br>
> > > backend status from MB to GB... With HDTV and modern disks I<br>
> > don't<br>
> > > think it make sense to report MB anymore and it's difficult to<br>
> > read<br>
> > > when I have a 3TB main drive and a dedicated 2TB drive for<br>
> > > recordings.<br>
> > <br>
> > I think the code you want is actually in<br>
> > mythtv/programs/mythbackend/httpstatus.cpp and is just proxied by<br>
> > mythweb so lack of Perl/php shouldn't be a barrier.<br>
> <br>
> A bit closer... I found the bit shifts ">>10" and changed them to<br>
> ">>20" for GB but still need to find where to change "MB" to "GB"...<br>
<br>
It's a bit further down the same file:<br>
<br>
        int nUsed    = g.attribute("used" , "0" ).toInt();<br>
<br>
        ...<br>
<br>
        os << "            <li>Space Used: ";<br>
        sRep = c.toString(nUsed) + " MB";<br>
        os << sRep << "</li>\r\n";<br>
<br>
If it were me to avoid them getting out of sync I would move the >>10<br>
and the naming of the units next to each other, by making the<br>
attributed and nUsed and friends use bytes as the units, and doing the<br>
shift in the latter bit of code right where the "MB" (or "GB") was<br>
appended, but maybe that's just me and perhaps you are looking for the<br>
smallest change to make.<br>
<br>
Ian.<br>
<br>
_______________________________________________<br>
mythtv-dev mailing list<br>
<a href="mailto:mythtv-dev@mythtv.org" target="_blank" rel="noreferrer">mythtv-dev@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-dev" rel="noreferrer noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-dev</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div>