projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26c9dd0
)
hugepages: typo fix in 2nd pathconf() check
author
Kim Jones
<kim-marie.jones@intel.com>
Tue, 16 Aug 2016 16:43:45 +0000
(17:43 +0100)
committer
Kim Jones
<kim-marie.jones@intel.com>
Tue, 16 Aug 2016 16:50:41 +0000
(17:50 +0100)
Change-Id: Ie4ceb0ec4b55e60fcffb1d59d33a5711366eb2f7
Signed-off-by: Kim Jones <kim-marie.jones@intel.com>
src/hugepages.c
patch
|
blob
|
history
diff --git
a/src/hugepages.c
b/src/hugepages.c
index
e7b98da
..
120dd79
100644
(file)
--- a/
src/hugepages.c
+++ b/
src/hugepages.c
@@
-220,7
+220,7
@@
static int read_nodes(void)
}
errno = 0;
- if ((lim = pathconf(
path
, _PC_NAME_MAX)) == -1) {
+ if ((lim = pathconf(
sys_node
, _PC_NAME_MAX)) == -1) {
/* Limit not defined if errno == 0, otherwise error */
if (errno != 0) {
ERROR("%s: pathconf failed", g_plugin_name);