Permalink
Browse files

Replaced 32-bit counters (unsigned long and float4) with 64-bit ones …

…(unsigned long long and float8).
  • Loading branch information...
1 parent 9bbfa8a commit 36fa551aad3c2f3e4ab12ab6124e0055fce3fd4d @tvondra committed Nov 3, 2011
Showing with 4 additions and 5 deletions.
  1. +1 −1 queryhist.c
  2. +3 −4 queryhist.h
View
@@ -361,7 +361,7 @@ void histogram_shmem_startup() {
sizeof(histogram_info_t),
&found);
- elog(DEBUG1, "initializing query histogram segment (size: %d B)", sizeof(histogram_info_t));
+ elog(DEBUG1, "initializing query histogram segment (size: %lu B)", sizeof(histogram_info_t));
if (! found) {
View
@@ -15,10 +15,9 @@ typedef enum {
HISTOGRAM_LOG
} histogram_type_t;
-/* data types used to store queries (maybe we should use
- * longer values) */
-typedef unsigned long count_bin_t;
-typedef float4 time_bin_t;
+/* data types used to store queries */
+typedef unsigned long long count_bin_t;
+typedef float8 time_bin_t;
/* used to transfer the data to the SRF */
typedef struct histogram_data {

0 comments on commit 36fa551

Please sign in to comment.