fix bug
This commit is contained in:
parent
243a3d16b6
commit
c820edc32a
|
@ -40,7 +40,7 @@ typedef struct SHeapEntry {
|
||||||
} SHeapEntry;
|
} SHeapEntry;
|
||||||
|
|
||||||
typedef struct SHistogramInfo {
|
typedef struct SHistogramInfo {
|
||||||
int32_t numOfElems;
|
int64_t numOfElems;
|
||||||
int32_t numOfEntries;
|
int32_t numOfEntries;
|
||||||
int32_t maxEntries;
|
int32_t maxEntries;
|
||||||
double min;
|
double min;
|
||||||
|
|
|
@ -446,7 +446,7 @@ void tHistogramDestroy(SHistogramInfo** pHisto) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void tHistogramPrint(SHistogramInfo* pHisto) {
|
void tHistogramPrint(SHistogramInfo* pHisto) {
|
||||||
printf("total entries: %d, elements: %d\n", pHisto->numOfEntries, pHisto->numOfElems);
|
printf("total entries: %d, elements: %"PRId64 "\n", pHisto->numOfEntries, pHisto->numOfElems);
|
||||||
#if defined(USE_ARRAYLIST)
|
#if defined(USE_ARRAYLIST)
|
||||||
for (int32_t i = 0; i < pHisto->numOfEntries; ++i) {
|
for (int32_t i = 0; i < pHisto->numOfEntries; ++i) {
|
||||||
printf("%d: (%f, %" PRId64 ")\n", i + 1, pHisto->elems[i].val, pHisto->elems[i].num);
|
printf("%d: (%f, %" PRId64 ")\n", i + 1, pHisto->elems[i].val, pHisto->elems[i].num);
|
||||||
|
|
Loading…
Reference in New Issue