diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2023-11-10 17:25:03 -0500 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2023-11-10 17:25:03 -0500 |
| commit | 2fc0d764522be9d4ac77ce7349f50fc40dc875e0 (patch) | |
| tree | f9710ac321a799325383eb6964292d6e2c15a25c /dashboard_website | |
| parent | 094e72d57ed52de21f57a6fd7a771e81c5a79cc6 (diff) | |
fix timings!!
Diffstat (limited to 'dashboard_website')
| -rw-r--r-- | dashboard_website/datastructs.py | 4 | ||||
| -rw-r--r-- | dashboard_website/static/js/dashboard.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dashboard_website/datastructs.py b/dashboard_website/datastructs.py index 6966ca9..24625d0 100644 --- a/dashboard_website/datastructs.py +++ b/dashboard_website/datastructs.py @@ -1,7 +1,7 @@ import time, math # time since last ping before deactivating/deleting -BIKE_TIMEOUT = 10 # 3 minutes -BIKE_DELETE = 20 # time before bike deletes itself +BIKE_TIMEOUT = 60 # 3 minutes +BIKE_DELETE = 300 # time before bike deletes itself # data structures class Point: diff --git a/dashboard_website/static/js/dashboard.js b/dashboard_website/static/js/dashboard.js index cb1c1aa..647c241 100644 --- a/dashboard_website/static/js/dashboard.js +++ b/dashboard_website/static/js/dashboard.js @@ -215,7 +215,7 @@ function requestLatestInfo(){ } var intervalId = window.setInterval(function(){ requestLatestInfo(); - }, 3000); + }, 5000); var clockINterval = window.setInterval(function(){ var d = new Date(); |
