After you follow that guide, you would essentially have to then, tweak the Disk widget to play nice with the settings. For instance:
On lines 68-76 of the disk_datah.php widget code, you’ll see variables marked for the location to use for the mount to read from.
//hard disk
$dftotal = number_format(round(@disk_total_space($location)/(1024*1024*1024),3)); //Total
$dffree = number_format(round(@disk_free_space($location)/(1024*1024*1024),3)); //Available
$dfused = number_format(round(@disk_total_space($location)/(1024*1024*1024),3)-round(@disk_free_space($location)/(1024*1024*1024),3)); //used
//hard disk for percentages
$dptotal = round(@disk_total_space($location)/(1024*1024*1024),3); //Total
$dpfree = round(@disk_free_space($location)/(1024*1024*1024),3); //Available
$dpused = $dptotal-$dpfree; //used
$perused = (floatval($dptotal)!=0)?round($dpused/$dptotal*100,2):0;
Like this @disk_total_space($location)
. This value is pulled from line #38, which is $location = "/home";
. You will need to change this to $location = "/home/seedkerz/torrents";
. Be sure to modify the disk_datah.php plugin. You could additionally create a carbon copy of this widget (which I strongly advise to avoid overwriting on updates). Just do …
cp /srv/rutorrent/home/widgets/disk_datah.php /srv/rutorrent/home/widgets/disk_datac.php
Then make the adjustments to the newly copied/created disk_datac.php as explained above.
Next, you will need to open /srv/rutorrent/home/inc/panel.header.php and make an adjustment to the ajax settings at line #288-294. Make sure it looks like the following:
function diskstats() {
$.ajax({url: "widgets/disk_datac.php", cache:false, success: function (result) {
$('#disk_data').html(result);
setTimeout(function(){diskstats()}, 15000);
}});
}
diskstats();
We currently only support /(root) and /home mounts at this time, I am trying to work out a better solution for those with crazy drive setups… but since everyone has a different approach to naming mounts etc, it makes things a bit more complicated.