Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.

Commit 8f55651

Browse files
GHMattiGHMatti
GHMatti
authored and
GHMatti
committed
Changed the version prefix seperator
1 parent af6a13a commit 8f55651

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mysql-async.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5187,7 +5187,7 @@ class MySQL {
51875187
if (version[0] === '5' || version[0] === '8') {
51885188
versionPrefix = 'MySQL';
51895189
}
5190-
profiler.setVersion(`${versionPrefix}-${version}`);
5190+
profiler.setVersion(`${versionPrefix}:${version}`);
51915191
logger.log('\x1b[32m[mysql-async]\x1b[0m Database server connection established.');
51925192
} else {
51935193
logger.error(`[ERROR] ${error.message}`);
@@ -14829,6 +14829,7 @@ class Profiler {
1482914829
};
1483014830
}
1483114831
}
14832+
// todo: cull old intervals
1483214833

1483314834
if (this.slowQueryLimit < queryTime) {
1483414835
this.addSlowQuery(sql, resource, queryTime);

src/server/mysql.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MySQL {
1818
if (version[0] === '5' || version[0] === '8') {
1919
versionPrefix = 'MySQL';
2020
}
21-
profiler.setVersion(`${versionPrefix}-${version}`);
21+
profiler.setVersion(`${versionPrefix}:${version}`);
2222
logger.log('\x1b[32m[mysql-async]\x1b[0m Database server connection established.');
2323
} else {
2424
logger.error(`[ERROR] ${error.message}`);

0 commit comments

Comments
 (0)