Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bucket count error causing mis-tabulated data with explicit buckets

  • Loading branch information...
commit 8a119223af680fba71eacba24aba8591ddcf28b3 1 parent 00ad65d
Wiktor Macura authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 hstress.c
View
8 hstress.c
@@ -32,7 +32,7 @@ struct{
int buckets[MAX_BUCKETS];
int nbuckets;
int rpc;
- int rate_limit;
+ int qps;
}params;
struct{
@@ -151,6 +151,8 @@ dispatch(struct evhttp_connection *evcon, int reqno)
struct evhttp_request *evreq;
struct request *req;
+// fprintf(stderr, "## request: %12d\n", reqno);
+
if((req = calloc(1, sizeof(*req))) == nil)
panic("calloc");
@@ -485,7 +487,9 @@ main(int argc, char **argv)
break;
case 'l':
- params.rate_limit = atoi(optarg);
+ fprintf(stderr, "SETTING QPS: %s\n", optarg);
+ params.qps = atoi(optarg);
+ fprintf(stderr, "QPS: %d\n", params.qps);
break;
case 'h':
Please sign in to comment.
Something went wrong with that request. Please try again.