Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

correct typo on locust datapoint #1676

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bzt/modules/_locustio.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ def point_from_locust(timestamp, sid, data):

for err in data['errors'].values():
if err['name'] == item['name']:
new_err = KPISet.error_item_skel(err['error'], None, err['occurences'], KPISet.ERRTYPE_ERROR,
new_err = KPISet.error_item_skel(err['error'], None, err['occurrences'], KPISet.ERRTYPE_ERROR,
Counter(), None)
KPISet.inc_list(kpiset[KPISet.ERRORS], ("msg", err['error']), new_err)
kpiset[KPISet.FAILURES] += err['occurences']
kpiset[KPISet.FAILURES] += err['occurrences']

kpiset[KPISet.SUCCESSES] = kpiset[KPISet.SAMPLE_COUNT] - kpiset[KPISet.FAILURES]
point[DataPoint.CURRENT][item['name']] = kpiset
Expand Down
1 change: 1 addition & 0 deletions site/dat/docs/changes/fix-locust-typo.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix locust typo in when processing datapoint.
Loading