diff options
author | DL6ER <dl6er@dl6er.de> | 2020-02-12 21:51:40 +0300 |
---|---|---|
committer | Dan Schaper <dan.schaper@pi-hole.net> | 2020-02-17 04:43:54 +0300 |
commit | d0e29ab7b0d08e16b8d7e6f69d3e5b8a544a3c32 (patch) | |
tree | 5985753541c6b7236a390d69f84f413e842e358a | |
parent | 714a79ffced5867fdfd6b43e14266a7850b07b11 (diff) |
Add human-readable output of time of the last gravity run.
Signed-off-by: DL6ER <dl6er@dl6er.de>
-rwxr-xr-x | advanced/Scripts/piholeDebug.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/advanced/Scripts/piholeDebug.sh b/advanced/Scripts/piholeDebug.sh index c778995d..b0af3a40 100755 --- a/advanced/Scripts/piholeDebug.sh +++ b/advanced/Scripts/piholeDebug.sh @@ -1131,6 +1131,9 @@ analyze_gravity_list() { log_write "${COL_GREEN}${gravity_permissions}${COL_NC}" show_db_entries "Info table" "SELECT property,value FROM info" "20 40" + gravity_updated_raw="$(sqlite3 "${PIHOLE_GRAVITY_DB_FILE}" "SELECT value FROM info where property = 'updated'")" + gravity_updated="$(date -d @${gravity_updated_raw})" + log_write " Last gravity run finished at: ${COL_CYAN}${gravity_updated}${COL_NC}" log_write "" OLD_IFS="$IFS" |