summaryrefslogtreecommitdiff
path: root/nodedb.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-12-19 17:52:21 +0100
committerorwell96 <orwell@bleipb.de>2018-12-19 17:52:21 +0100
commit56d03692df3076a109b73ce78a869bc799d802c9 (patch)
treed1c8914ad6434298c1bb4f2f508b0ad0a98ab65a /nodedb.lua
parent69245c49c59e2299bdafff5884e6fbf95f027f4b (diff)
downloadadvtrains_netmapper-56d03692df3076a109b73ce78a869bc799d802c9.tar.gz
advtrains_netmapper-56d03692df3076a109b73ce78a869bc799d802c9.tar.bz2
advtrains_netmapper-56d03692df3076a109b73ce78a869bc799d802c9.zip
Progress
Diffstat (limited to 'nodedb.lua')
-rw-r--r--nodedb.lua3
1 files changed, 3 insertions, 0 deletions
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