Skip to content

Commit 80b8c4a

Browse files
committed
Fixed pserver benchmark not compiling due to recent Histogram changes
1 parent 01ce7a1 commit 80b8c4a

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

benchmark_suite/benchmark_pserver/benchmark_client.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,10 @@ int main(int argc, char **argv){
144144
}
145145
params = p;
146146
}else if(args.algorithm == "hbos" || args.algorithm == "copod"){
147-
Histogram::Data d;
148-
d.counts.resize(args.hbos_bins);
149-
d.bin_edges.resize(args.hbos_bins+1);
150-
for(int i=0;i<args.hbos_bins;i++) d.counts[i] = i;
151-
for(int i=0;i<args.hbos_bins+1;i++) d.bin_edges[i] = i;
147+
std::vector<unsigned int> counts(args.hbos_bins);
148+
for(int i=0;i<args.hbos_bins;i++) counts[i] = i;
152149
Histogram hd;
153-
hd.set_hist_data(d);
154-
hd.set_min_max(0.0001, args.hbos_bins-0.0001);
150+
hd.set_histogram(counts, 0.0001, args.hbos_bins, 0, 1);
155151

156152
if(args.algorithm == "hbos"){
157153
HbosParam *p = new HbosParam;

0 commit comments

Comments
 (0)