From f0610ab8711aaa2a4eab1e0249cbf4f46225dbb4 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Mon, 08 Jan 2018 16:48:54 +0800
Subject: [PATCH] updated
---
config.js | 1 -
create_data.js | 4 ++--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/config.js b/config.js
index 4b0962d..34cb424 100644
--- a/config.js
+++ b/config.js
@@ -1,7 +1,6 @@
var config = {
mysql: {
- connectionLimit : 20,
host : "47.96.26.152",
database: "monitor",
user : "root",
diff --git a/create_data.js b/create_data.js
index 10ac6b3..a759165 100644
--- a/create_data.js
+++ b/create_data.js
@@ -55,8 +55,6 @@
if(device_data.length > 0) {
insertDeviceData(device_data, connection);
}
-
- connection.release();
});
});
}
@@ -75,5 +73,7 @@
connection.query(sql, function (error, results, fields) {
if (error) throw error;
+
+ connection.release();
});
}
\ No newline at end of file
--
Gitblit v1.8.0