bugfix
This commit is contained in:
@@ -156,7 +156,7 @@ async function watch() {
|
||||
let result = await dbUtils.query(`SELECT \`value\` as count FROM analysis WHERE \`key\`='${sql.name}'`);
|
||||
let sqlTimeSpent = Date.now() - sqlStartTime;
|
||||
sqlsTimeSpent += sqlTimeSpent;
|
||||
newWatchParam[sql.name] = result[0].count;
|
||||
newWatchParam[sql.name] = result[0]?.count;
|
||||
console.log(`query ${sql.name} finished.\tspend time: ${sqlTimeSpent}ms (${(sqlTimeSpent / 1000).toFixed(2)}s),\tcount: ${newWatchParam[sql.name]}`);
|
||||
resolve();
|
||||
}));
|
||||
|
Reference in New Issue
Block a user