mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 11:06:02 +00:00
fixed number format
This commit is contained in:
@@ -335,11 +335,11 @@ function start() {
|
|||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
const time = new Date().getTime();
|
const time = new Date().getTime();
|
||||||
if (time - lastPing > 40_000) {
|
if (time - lastPing > 40 * 1000) {
|
||||||
console.log('Database connection not alive, exiting');
|
console.log('Database connection not alive, exiting');
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
}, 10_000);
|
}, 10 * 1000);
|
||||||
|
|
||||||
process.on('message', async message => {
|
process.on('message', async message => {
|
||||||
if (handleProcessCommunication(message)) return;
|
if (handleProcessCommunication(message)) return;
|
||||||
|
|||||||
@@ -111,11 +111,11 @@ function start() {
|
|||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
const time = new Date().getTime();
|
const time = new Date().getTime();
|
||||||
if (time - lastPing > 40_000) {
|
if (time - lastPing > 40 * 1000) {
|
||||||
console.log('Server connection not alive, exiting');
|
console.log('Server connection not alive, exiting');
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
}, 10_000);
|
}, 10 * 1000);
|
||||||
|
|
||||||
process.on('message', async message => {
|
process.on('message', async message => {
|
||||||
if (handleProcessCommunication(message)) return;
|
if (handleProcessCommunication(message)) return;
|
||||||
|
|||||||
@@ -296,11 +296,11 @@ function start() {
|
|||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
const time = new Date().getTime();
|
const time = new Date().getTime();
|
||||||
if (time - lastPing > 25_000) {
|
if (time - lastPing > 25 * 1000) {
|
||||||
console.log('Session not alive, exiting');
|
console.log('Session not alive, exiting');
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
}, 10_000);
|
}, 10 * 1000);
|
||||||
|
|
||||||
process.on('message', async message => {
|
process.on('message', async message => {
|
||||||
if (handleProcessCommunication(message)) return;
|
if (handleProcessCommunication(message)) return;
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
sesid: sessionId,
|
sesid: sessionId,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, 15_000);
|
}, 15 * 1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
|
|||||||
@@ -109,7 +109,7 @@
|
|||||||
sesid: sessionId,
|
sesid: sessionId,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, 15_000);
|
}, 15 * 1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
|
|||||||
@@ -29,12 +29,12 @@ export function subscribeConnectionPingers() {
|
|||||||
openedConnections.subscribe(value => {
|
openedConnections.subscribe(value => {
|
||||||
doServerPing(value);
|
doServerPing(value);
|
||||||
if (openedConnectionsHandle) window.clearInterval(openedConnectionsHandle);
|
if (openedConnectionsHandle) window.clearInterval(openedConnectionsHandle);
|
||||||
openedConnectionsHandle = window.setInterval(() => doServerPing(value), 30_000);
|
openedConnectionsHandle = window.setInterval(() => doServerPing(value), 30 * 1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
currentDatabase.subscribe(value => {
|
currentDatabase.subscribe(value => {
|
||||||
doDatabasePing(value);
|
doDatabasePing(value);
|
||||||
if (currentDatabaseHandle) window.clearInterval(currentDatabaseHandle);
|
if (currentDatabaseHandle) window.clearInterval(currentDatabaseHandle);
|
||||||
currentDatabaseHandle = window.setInterval(() => doDatabasePing(value), 30_000);
|
currentDatabaseHandle = window.setInterval(() => doDatabasePing(value), 30 * 1000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user