From 2a5cf221fa54609472f29f5294d3d716db50e268 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 2 Feb 2020 23:46:33 +0100 Subject: [PATCH] Store number of distinct gravity domains in database after counting. Signed-off-by: DL6ER --- gravity.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/gravity.sh b/gravity.sh index 26bedae7..f4cbe78d 100755 --- a/gravity.sh +++ b/gravity.sh @@ -583,6 +583,7 @@ gravity_Table_Count() { local unique unique="$(sqlite3 "${gravityDBfile}" "SELECT COUNT(DISTINCT domain) FROM ${table};")" echo -e " ${INFO} Number of ${str}: ${num} (${unique} unique domains)" + sqlite3 "${gravityDBfile}" "INSERT OR REPLACE INTO info (property,value) VALUES ('gravity_count',${unique});" else echo -e " ${INFO} Number of ${str}: ${num}" fi