<html><body><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000"><div>Spot on! To (mis)quote Obi-wan: "Use the source, Luke". You did well :-)</div><div><br></div><div><soapbox><br><br>Whomever thought it was a good idea to come up with GiB to mean a 1024-based value and re-purpose GB to mean a 1000-based one did the computing world a disservice. The (ab)use of the SI multipliers K, M and G to mean a 1024-based value in describing computer memory size started LONG before the hard-disk industry started pushing 1000-based numbers, likely to make their disks look larger than they actually were.<br></div><div><br data-mce-bogus="1"></div><div>Yes, it is technically more correct to have GB be 1000-based (10-base) instead of 1024-based (2-base), but changing the meaning ignores decades worth of history. This mess could also have been cleaned up by creating a unique name for the new "true SI" multiplier based values instead of changing the meaning of the old one, as right now you have no idea what you're looking at unless you examine the code, as it will depend on when the app was written, whether the developers know about GB vs. GiB and whether they care to followed the new scheme.</div><div><br></div><div></soapbox><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Glad you found the true meaning of the value, though!</div><div><br></div><div>Cheers,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>- Richard.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Jerome Yuzyk" <jerome@supernet.ab.ca><br><b>To: </b>"MythTV-dev" <mythtv-dev@mythtv.org><br><b>Sent: </b>Tuesday, January 19, 2016 4:33:03 PM<br><b>Subject: </b>Re: [mythtv] how to get "Extra Disk Space" setting?<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><style>
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Wednesday, January 20, 2016 11:09:27 AM Nigel Pearson wrote:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> On 20 Jan 2016, at 10:40 am, Jerome Yuzyk <jerome@supernet.ab.ca> wrote:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> > </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> > Got it. Is that value GB (1000 ** 3) or GiB (1024 ** 3)?</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> Googled for "MythTV AutoExpireExtraSpace: and looked for some code, and:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> http://www.cuymedia.com/mythtv-jya/mythtv_2programs_2mythfrontend_2globalsettings_8cpp_source.html</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> …</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> 00326 static GlobalSpinBox *AutoExpireExtraSpace()</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> 00327 {</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> 00328     GlobalSpinBox *bs = new GlobalSpinBox("AutoExpireExtraSpace", 0, 200, 1);</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> 00329     bs->setLabel(QObject::tr("Extra disk space (GB)"));</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> 00330     bs->setHelpText(QObject::tr("Extra disk space (in gigabytes) beyond what "</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> 00331                     "MythTV requires that you want to keep free on the "</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> 00332                     "recording file systems."));</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> 00333     bs->setValue(1);</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> 00334     return bs;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> 00335 };</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Thanks! Inspired by that I dug a little deeper and it seems autoexpire.cpp uses GiB (1024-based) which makes sense, but I needed to verify that since the UI says GB.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-- </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">A little of Jerome's MythTV World: http://mythtv.bss.ab.ca</p><br>_______________________________________________<br>mythtv-dev mailing list<br>mythtv-dev@mythtv.org<br>http://lists.mythtv.org/mailman/listinfo/mythtv-dev<br>http://wiki.mythtv.org/Mailing_List_etiquette<br>MythTV Forums: https://forum.mythtv.org<br></div></div></body></html>