Skip to content

Commit

Permalink
Update to 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GHMatti authored and GHMatti committed May 7, 2020
1 parent 86c603c commit ce55f2d
Show file tree
Hide file tree
Showing 6 changed files with 1,346 additions and 425 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fx_version 'adamant'
game 'common'

version '3.2.0'
version '3.2.1'

server_script 'mysql-async.js'
client_script 'mysql-async-client.js'
Expand Down
14 changes: 7 additions & 7 deletions mysql-async-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,19 +158,19 @@ window.onNet('mysql-async:update-resource-data', (resourceData) => {
});
NuiMessage({
type: 'onResourceLabels',
resourceLabels: arrayToSortAndMap.map(el => el.resource),
resourceLabels: arrayToSortAndMap.map((el) => el.resource),
});
NuiMessage({
type: 'onResourceData',
resourceData: [
{
data: arrayToSortAndMap.map(el => el.queryTime),
data: arrayToSortAndMap.map((el) => el.queryTime),
},
{
data: arrayToSortAndMap.map(el => ((el.count > 0) ? el.queryTime / el.count : 0)),
data: arrayToSortAndMap.map((el) => ((el.count > 0) ? el.queryTime / el.count : 0)),
},
{
data: arrayToSortAndMap.map(el => el.count),
data: arrayToSortAndMap.map((el) => el.count),
},
],
});
Expand All @@ -188,14 +188,14 @@ window.onNet('mysql-async:update-time-data', (timeData) => {
type: 'onTimeData',
timeData: [
{
data: timeArray.map(el => el.totalExecutionTime),
data: timeArray.map((el) => el.totalExecutionTime),
},
{
data: timeArray.map(el => ((el.queryCount > 0) ? el.totalExecutionTime / el.queryCount
data: timeArray.map((el) => ((el.queryCount > 0) ? el.totalExecutionTime / el.queryCount
: 0)),
},
{
data: timeArray.map(el => el.queryCount),
data: timeArray.map((el) => el.queryCount),
},
],
});
Expand Down
Loading

0 comments on commit ce55f2d

Please sign in to comment.