<div dir="ltr"><div>Hello,</div><div><br></div><div>I got a badmatch error when use cpu_sup in high load server.</div><div><br></div><div>{{badmatch,{more,"~d",24,[164,6.017000e+01,1.002000e+02,1.223600e+02]}},[{cpu_sup,get_uint32_measurement,2,[{file,"cpu_sup.erl"},{line,226}]},{cpu_sup,measurement_server_loop,1,[{file,"cpu_sup.erl"},{line,585}]}]}</div>
<div><br></div><div>I read the code, and when /proc/loadavg is 252.64 163.23 74.37 127/4840 18828,</div><div><br></div><div>"{ok,D} = file:read(F,24)" gets 252.64 163.23 74.37 127/, and it is not enough for io_lib:fread("~f ~f ~f ~d/~d", D).</div>
<div><br></div><div>so changing 24 to 48 may be a good idea.</div><div><br></div><div>Yusong Gao</div><div><br></div><div><br></div><div><br></div></div>