[mythtv] how to get "Extra Disk Space" setting?
Jerome Yuzyk
jerome at supernet.ab.ca
Wed Jan 20 00:33:03 UTC 2016
On Wednesday, January 20, 2016 11:09:27 AM Nigel Pearson wrote:
>
> On 20 Jan 2016, at 10:40 am, Jerome Yuzyk <jerome at supernet.ab.ca> wrote:
> >
> > Got it. Is that value GB (1000 ** 3) or GiB (1024 ** 3)?
>
>
> Googled for "MythTV AutoExpireExtraSpace: and looked for some code, and:
>
>
> http://www.cuymedia.com/mythtv-jya/mythtv_2programs_2mythfrontend_2globalsettings_8cpp_source.html
>
> …
>
> 00326 static GlobalSpinBox *AutoExpireExtraSpace()
> 00327 {
> 00328 GlobalSpinBox *bs = new GlobalSpinBox("AutoExpireExtraSpace", 0, 200, 1);
> 00329 bs->setLabel(QObject::tr("Extra disk space (GB)"));
> 00330 bs->setHelpText(QObject::tr("Extra disk space (in gigabytes) beyond what "
> 00331 "MythTV requires that you want to keep free on the "
> 00332 "recording file systems."));
> 00333 bs->setValue(1);
> 00334 return bs;
> 00335 };
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.
--
A little of Jerome's MythTV World: http://mythtv.bss.ab.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20160119/9e7fbae8/attachment.html>
More information about the mythtv-dev
mailing list