Skip to content

Commit

Permalink
Connectivity update
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister authored Oct 12, 2024
1 parent b39a768 commit f4b18b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/366x366/app/connectivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ setInterval(function () {

var lastSentAge = lastSent == null ? 999999 : Date.now() - lastSent;
var lastReceivedAge = lastReceived == null ? 999999 : Date.now() - lastReceived;
if (lastSentAge > 120000 && lastReceivedAge > 120000) {
if (lastSentAge > 150000 && lastReceivedAge > 150000) {
try {
msgq.send("connectivity", { }, true);
} catch (e) {
Expand Down Expand Up @@ -92,7 +92,7 @@ export function drawState() {
queueSizeEl.text += " / W";
}

if (lastReceivedAge >= 900000) {
if (lastReceivedAge >= 1800000) {
disconnected = true;
phoneIconEl.style.fill = disconnectedColour;
queueSizeEl.style.fill = disconnectedColour;
Expand Down

0 comments on commit f4b18b9

Please sign in to comment.