aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-08-07 09:33:41 +0200
committerLukas Larsson <[email protected]>2019-08-07 09:33:41 +0200
commitb71163642a7eae246432e1693255d5276039abf1 (patch)
treeffd20c5669c650bbb3c7cc7fb162e215b9e4e2db /lib/os_mon
parent0ac5f0177761ac68a22b8ebf691a20e470918dd6 (diff)
parented56842fc6f2956eec28aea93ad252f8bd9bd092 (diff)
downloadotp-b71163642a7eae246432e1693255d5276039abf1.tar.gz
otp-b71163642a7eae246432e1693255d5276039abf1.tar.bz2
otp-b71163642a7eae246432e1693255d5276039abf1.zip
Merge branch 'maint'
Diffstat (limited to 'lib/os_mon')
-rw-r--r--lib/os_mon/c_src/cpu_sup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/os_mon/c_src/cpu_sup.c b/lib/os_mon/c_src/cpu_sup.c
index c96a5c9f7c..98a2526aab 100644
--- a/lib/os_mon/c_src/cpu_sup.c
+++ b/lib/os_mon/c_src/cpu_sup.c
@@ -359,7 +359,7 @@ static cpu_t *read_procstat(FILE *fp, cpu_t *cpu) {
memset(cpu, 0, sizeof(cpu_t));
return cpu;
}
- sscanf(buffer, "cpu%u %Lu %Lu %Lu %Lu %Lu %Lu %Lu %Lu",
+ sscanf(buffer, "cpu%u %llu %llu %llu %llu %llu %llu %llu %llu",
&(cpu->id),
&(cpu->user),
&(cpu->nice_user),