fixed number format

This commit is contained in:
Jan Prochazka 2022-11-13 18:39:13 +01:00
parent cd92231769
commit cbd3f1bae9
6 changed files with 10 additions and 10 deletions

View File

@ -335,11 +335,11 @@ function start() {
setInterval(() => {
const time = new Date().getTime();
if (time - lastPing > 40_000) {
if (time - lastPing > 40 * 1000) {
console.log('Database connection not alive, exiting');
process.exit(0);
}
}, 10_000);
}, 10 * 1000);
process.on('message', async message => {
if (handleProcessCommunication(message)) return;

View File

@ -111,11 +111,11 @@ function start() {
setInterval(() => {
const time = new Date().getTime();
if (time - lastPing > 40_000) {
if (time - lastPing > 40 * 1000) {
console.log('Server connection not alive, exiting');
process.exit(0);
}
}, 10_000);
}, 10 * 1000);
process.on('message', async message => {
if (handleProcessCommunication(message)) return;

View File

@ -296,11 +296,11 @@ function start() {
setInterval(() => {
const time = new Date().getTime();
if (time - lastPing > 25_000) {
if (time - lastPing > 25 * 1000) {
console.log('Session not alive, exiting');
process.exit(0);
}
}, 10_000);
}, 10 * 1000);
process.on('message', async message => {
if (handleProcessCommunication(message)) return;

View File

@ -114,7 +114,7 @@
sesid: sessionId,
});
}
}, 15_000);
}, 15 * 1000);
});
onDestroy(() => {

View File

@ -109,7 +109,7 @@
sesid: sessionId,
});
}
}, 15_000);
}, 15 * 1000);
});
onDestroy(() => {

View File

@ -29,12 +29,12 @@ export function subscribeConnectionPingers() {
openedConnections.subscribe(value => {
doServerPing(value);
if (openedConnectionsHandle) window.clearInterval(openedConnectionsHandle);
openedConnectionsHandle = window.setInterval(() => doServerPing(value), 30_000);
openedConnectionsHandle = window.setInterval(() => doServerPing(value), 30 * 1000);
});
currentDatabase.subscribe(value => {
doDatabasePing(value);
if (currentDatabaseHandle) window.clearInterval(currentDatabaseHandle);
currentDatabaseHandle = window.setInterval(() => doDatabasePing(value), 30_000);
currentDatabaseHandle = window.setInterval(() => doDatabasePing(value), 30 * 1000);
});
}