From 56d03692df3076a109b73ce78a869bc799d802c9 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 19 Dec 2018 17:52:21 +0100 Subject: Progress --- nodedb.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nodedb.lua') diff --git a/nodedb.lua b/nodedb.lua index 570f751..de582f0 100644 --- a/nodedb.lua +++ b/nodedb.lua @@ -1,6 +1,7 @@ --nodedb.lua --database of all nodes that have 'save_in_at_nodedb' field set to true in node definition +ndb_nodes_notrack = 0 --serialization format: --(2byte z) (2byte y) (2byte x) (2byte contentid) @@ -75,6 +76,7 @@ function ndb.load_data(data) cid=file:read(2) end print("nodedb: read", cnt, "nodes.") + ndb_nodes_total = cnt file:close() end end @@ -153,6 +155,7 @@ function ndb.mapper_find_starting_point() else -- this is a signal or something similar, ignore. tx[z]=nil + ndb_nodes_notrack = ndb_nodes_notrack + 1 end end end -- cgit v1.2.3