projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1454 from rubenk/libi2c-dev-mark-as-linux-only
[collectd.git]
/
src
/
utils_latency.c
diff --git
a/src/utils_latency.c
b/src/utils_latency.c
index
d570ab6
..
12fc9b8
100644
(file)
--- a/
src/utils_latency.c
+++ b/
src/utils_latency.c
@@
-32,6
+32,10
@@
#include <math.h>
#include <limits.h>
#include <math.h>
#include <limits.h>
+#ifndef LLONG_MAX
+# define LLONG_MAX 9223372036854775807LL
+#endif
+
#ifndef HISTOGRAM_NUM_BINS
# define HISTOGRAM_NUM_BINS 1000
#endif
#ifndef HISTOGRAM_NUM_BINS
# define HISTOGRAM_NUM_BINS 1000
#endif
@@
-159,7
+163,7
@@
void latency_counter_add (latency_counter_t *lc, cdtime_t latency) /* {{{ */
bin = (latency - 1) / lc->bin_width;
if (bin >= HISTOGRAM_NUM_BINS)
{
bin = (latency - 1) / lc->bin_width;
if (bin >= HISTOGRAM_NUM_BINS)
{
- ERROR ("utils_latency: latency_counter_add: Invalid bin
%lu"
, bin);
+ ERROR ("utils_latency: latency_counter_add: Invalid bin
: %"PRIu64
, bin);
return;
}
}
return;
}
}