Skip to content

Commit

Permalink
Merge pull request #57 from wso2/master-4.4.0-fixes
Browse files Browse the repository at this point in the history
[4.4.0] Fix non numeric mean bug
  • Loading branch information
Lakith-Rambukkanage authored Oct 23, 2024
2 parents 577a92c + f72bb97 commit 0214fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distribution/scripts/jmeter/create-sar-summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def main():
& (df['timestamp'] <= args.end_timestamp)]
df = df.drop(columns=['hostname', 'interval', 'timestamp'])
df = df.rename(columns=lambda x: re.sub(r'[%/\-]', '', x))
sar_averages.update(df.mean().round(2).to_dict())
sar_averages.update(df.mean(numeric_only=True).round(2).to_dict())

with open(args.output_file, 'w') as outfile:
json.dump(sar_averages, outfile)
Expand Down

0 comments on commit 0214fd4

Please sign in to comment.