Skip to content

Commit

Permalink
Merge pull request #58 from wso2/master-graphql-4.4.0-fixes
Browse files Browse the repository at this point in the history
[4.4.0] [GraphQL] Fix non numeric mean bug
  • Loading branch information
RakhithaRR authored Oct 28, 2024
2 parents 1e7fdd3 + 09ab4f8 commit aeea156
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 aeea156

Please sign in to comment.