From 9dabea7581d53551046b9c9580ed96ff2fe9f000 Mon Sep 17 00:00:00 2001 From: Michael Rodriguez Date: Tue, 4 Mar 2008 15:44:24 -0800 Subject: [PATCH] int * working with perl --- src/crush/CrushWrapper.h | 36 +++--------------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/src/crush/CrushWrapper.h b/src/crush/CrushWrapper.h index 2a66fc1996b68..1c0bb0699c9af 100644 --- a/src/crush/CrushWrapper.h +++ b/src/crush/CrushWrapper.h @@ -236,47 +236,17 @@ public: /* modifiers */ int add_bucket(int bucketno, int alg, int type, int size, - int *items, int *weights, double *min, double *max, double *avg) { - std::cout << "here" < *max) - *max = *items; - items++; - weights++; - num++; - } - - printf("here\n"); - - *avg /= num; - - return 10; - //return crush_add_bucket(crush, bucketno, b); + return crush_add_bucket(crush, bucketno, b); } - - void finalize() { assert(crush); crush_finalize(crush); } - - - void set_offload(int i, unsigned o) { assert(i < crush->max_devices); crush->device_offload[i] = o; -- 2.39.5