craigwatson / bitcoind-status

PHP application to display status and information from the Bitcoin node daemon.
https://odin.vikingserv.net
Apache License 2.0
82 stars 77 forks source link

Implement days till full for free space display #30

Closed Empty2k12 closed 6 years ago

Empty2k12 commented 7 years ago

This adds the info of how many days the disk space will last to the free disk space display.

It looks like this: Free Disk Space: 68.37 GB (Space for roughly 486 more days of blocks)

To print it in one line, you should change Line 295 in php/functions.php to return convertToSI(disk_free_space("."));

To sse it in action check out my Node Status page!

craigwatson commented 7 years ago

Hi,

Thanks for the pull request, I definitely think it's something useful.

Could you re-implement the change with a toggle in php/config.php to switch the extra text on and off, and also refactor the PHP out into a function and add the value to $data during the initial gathering stage, rather than computing on-the-fly in the template?

Thanks, Craig