Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/shared_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
"startup_delay": 10,
"web_delay": 2,
"screen_delay": 1,
"vuln_count_display_delay": 300,
"comment_delaymin": 15,
"comment_delaymax": 30,
"livestatus_delay": 8,
"image_display_delaymin": 2,
"image_display_delaymax": 8,
"scan_interval": 180,
"scan_vuln_interval": 900,
"shared_data_update_delay": 25,
"failed_retry_delay": 600,
"success_retry_delay": 900,
"ref_width": 122,
Expand Down
4 changes: 2 additions & 2 deletions display.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ def schedule_update_shared_data(self):
"""Periodically update the shared data with the latest system information."""
while not self.shared_data.display_should_exit:
self.update_shared_data()
time.sleep(25)
time.sleep(self.shared_data.shared_data_update_delay)

def schedule_update_vuln_count(self):
"""Periodically update the vulnerability count on the display."""
while not self.shared_data.display_should_exit:
self.update_vuln_count()
time.sleep(300)
time.sleep(self.shared_data.vuln_count_display_delay)

def update_main_image(self):
"""Update the main image on the display with the latest immagegen data."""
Expand Down
2 changes: 2 additions & 0 deletions shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,15 @@ def get_default_config(self):
"startup_delay": 10,
"web_delay": 2,
"screen_delay": 1,
"vuln_count_display_delay": 300,
"comment_delaymin": 15,
"comment_delaymax": 30,
"livestatus_delay": 8,
"image_display_delaymin": 2,
"image_display_delaymax": 8,
"scan_interval": 180,
"scan_vuln_interval": 900,
"shared_data_update_delay": 25,
"failed_retry_delay": 600,
"success_retry_delay": 900,
"ref_width" :122 ,
Expand Down