Skip to content

Commit ccc2939

Browse files
authored
[bugfix][data points]
When counting data points . If in request event segment count =2, it still has to count as single data point
1 parent 49c33da commit ccc2939

File tree

1 file changed

+1
-1
lines changed
  • plugins/server-stats/api

1 file changed

+1
-1
lines changed

plugins/server-stats/api/api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const FEATURE_NAME = 'server-stats';
3232
function eventCountMapper(events) {
3333
const eventCountMap = {};
3434
for (let i = 0; i < events.length; i++) {
35-
const eventKeyCount = events[i].count || 1;
35+
const eventKeyCount = 1;
3636

3737
if (stats.internalEventsEnum[events[i].key]) {
3838
eventCountMap[stats.internalEventsEnum[events[i].key]] = eventKeyCount + (eventCountMap[stats.internalEventsEnum[events[i].key]] || 0);

0 commit comments

Comments
 (0)