From d3830aea9661dac0610eef72cad35b188832b7f2 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 21 Dec 2014 18:40:25 -0800 Subject: 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. --- boot.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 842113c31..366346d25 100755 --- a/boot.php +++ b/boot.php @@ -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 -- cgit v1.2.3