Compare commits

..

No commits in common. "6d7e1f4ad2ec83d9edd2846453fd3a2c0496eb05" and "141eb051567479d227bf446cc06578e7ce2bcced" have entirely different histories.

3 changed files with 4 additions and 4 deletions

View file

@ -135,7 +135,7 @@ def handle_stats_steps(sender_id, message, step, interface):
total_nodes = len(interface.nodes)
else:
time_limit = current_time - seconds
total_nodes = sum(1 for node in interface.nodes.values() if node.get('lastHeard') is not None and node['lastHeard'] >= time_limit)
total_nodes = sum(1 for node in interface.nodes.values() if node.get('lastHeard', 0) >= time_limit)
total_nodes_summary.append(f"- {period}: {total_nodes}")
response = "Total nodes seen:\n" + "\n".join(total_nodes_summary)

View file

@ -76,7 +76,7 @@ def merge_config(system_config:dict[str, Any], args:argparse.Namespace) -> dict[
system_config['port'] = args.port
if args.host is not None:
system_config['hostname'] = args.host
system_config['host'] = args.host
return system_config

View file

@ -1,6 +1,6 @@
#!/bin/sh
if [ ! -f "/config/config.ini" ]; then
cp "/TC2-BBS-mesh/example_config.ini" "/config/config.ini"
cp "/TC2-BBS-mesh/config.ini" "/config/config.ini"
fi
if [ ! -f "/config/fortunes.txt" ]; then
cp "/TC2-BBS-mesh/fortunes.txt" "/config/fortunes.txt"