Skip to content

Commit

Permalink
Update Mobile_Site_Survey.py
Browse files Browse the repository at this point in the history
  • Loading branch information
phate999 authored Mar 20, 2024
1 parent 2eeef10 commit b91b7f9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Mobile_Site_Survey/Mobile_Site_Survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,12 @@ def loop(self):
title = f' ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n' \
f' ┣┅➤ {pretty_timestamp}{pretty_lat}, {pretty_lon} \n'
self.results = title + self.results

# Reset routing policies and tables
# Should this be omitted to avoid constant route recreation?
cp.put('config/routing/policies', routing_policies)
cp.put('config/routing/tables', routing_tables)

cp.log('---> Survey Complete <---')
self.timestamp = None
self.manual = False
Expand Down Expand Up @@ -429,7 +433,6 @@ def dec(deg, min, sec):
dec = deg + (min / 60) + (sec / 3600)
return round(dec, 6)


def debug_log(msg):
"""Write log when in debug mode"""
if dispatcher.config["debug"]:
Expand Down Expand Up @@ -482,7 +485,6 @@ def ping(host, iface):
except Exception as e:
cp.log(f'Exception in PING: {e}')


def run_tests(sim):
"""Main testing function - multithreaded by Dispatcher"""
download, upload, latency = 0.0, 0.0, 0.0
Expand Down Expand Up @@ -587,7 +589,6 @@ def run_tests(sim):
cp.log(f'Exception calculating packet loss: {e}')
tx, rx, packet_loss_percent = 0, 0, 0


if dispatcher.config["speedtests"]:
# Ookla Speedtest
try:
Expand Down Expand Up @@ -821,8 +822,6 @@ def run_tests(sim):
msg = f'Unable to write to {filename}. {e}'
log_all(msg, logs)



def manual_test(path, value, *args):
if not value:
debug_log('Blank Description - Executing Manual Test')
Expand Down

0 comments on commit b91b7f9

Please sign in to comment.