diff options
author | friendica <info@friendica.com> | 2014-12-21 18:40:25 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-12-21 18:40:25 -0800 |
commit | d3830aea9661dac0610eef72cad35b188832b7f2 (patch) | |
tree | 6609f577ec12b47eb53e5169a2e97f1039dbea31 /boot.php | |
parent | b840c279957667168b400207caff14dc78043994 (diff) | |
download | volse-hubzilla-d3830aea9661dac0610eef72cad35b188832b7f2.tar.gz volse-hubzilla-d3830aea9661dac0610eef72cad35b188832b7f2.tar.bz2 volse-hubzilla-d3830aea9661dac0610eef72cad35b188832b7f2.zip |
provide last successful poll run time (using relative time) in siteinfo so that we can tell folks that have no idea what we're talking about that their poller definitely isn't running and this is probably why nothing works correctly.
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -2171,3 +2171,13 @@ function get_directory_realm() { return DIRECTORY_REALM; } + + +/** + * @brief return relative date of last completed poller execution + */ + +function get_poller_runtime() { + $t = get_config('system','lastpoll'); + return relative_date($t); +}
\ No newline at end of file |