Skip to content

Commit

Permalink
Update QPSMetric
Browse files Browse the repository at this point in the history
Make the QPS metric only use the time from the successful queries.
  • Loading branch information
nck-mlcnv authored Oct 31, 2023
1 parent 455908f commit c13feb5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ private Properties putResults(Properties extra, double time, long success, long
Properties tmp = getDataFromContainer(extra);
if(tmp!=null && tmp.containsKey(queryID)){
Object[] oldArr = (Object[]) tmp.get(queryID);
oldArr[0] = (double) oldArr[0] + time;
if (success > 0)
oldArr[0] = (double) oldArr[0] + time;
oldArr[1] = (long) oldArr[1] + success;
oldArr[2] = (long) oldArr[2] + failure;
if((long)oldArr[3]<size) {
Expand Down

0 comments on commit c13feb5

Please sign in to comment.