summaryrefslogtreecommitdiffstats
path: root/collectors/proc.plugin/proc_mdstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'collectors/proc.plugin/proc_mdstat.c')
-rw-r--r--collectors/proc.plugin/proc_mdstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/collectors/proc.plugin/proc_mdstat.c b/collectors/proc.plugin/proc_mdstat.c
index d6e87fd2..c3d1793c 100644
--- a/collectors/proc.plugin/proc_mdstat.c
+++ b/collectors/proc.plugin/proc_mdstat.c
@@ -231,8 +231,8 @@ int do_proc_mdstat(int update_every, usec_t dt)
continue;
}
- raid->inuse_disks = str2ull(str_inuse);
- raid->total_disks = str2ull(str_total);
+ raid->inuse_disks = str2ull(str_inuse, NULL);
+ raid->total_disks = str2ull(str_total, NULL);
raid->failed_disks = raid->total_disks - raid->inuse_disks;
}
@@ -300,7 +300,7 @@ int do_proc_mdstat(int update_every, usec_t dt)
word += 6; // skip leading "speed="
if (likely(s > word))
- raid->speed = str2ull(word);
+ raid->speed = str2ull(word, NULL);
}
}