fix random connection.end and repeated sql connect

This commit is contained in:
newtbot
2023-12-27 16:44:21 +08:00
parent 699b8f88df
commit c38d4eb8bb
7 changed files with 81 additions and 30 deletions

View File

@ -20,7 +20,7 @@ let region = ["central", "north-east", "north", "east", "west"];
function generateRandomData() {
const psiData = getRandomValue(0, 500);
const humidityData = getRandomValue(0, 100);
const o3Data = getRandomValue(0, 600); //max 600
const o3Data = getRandomValue(0, 600); //max 600
const no2Data = getRandomValue(0, 1000); //max 1000
const so2Data = getRandomValue(0, 1000); //max 1000
const coData = getRandomValue(0 , 100);