1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00

Merge branch '4.0release' into develop

This commit is contained in:
winlin 2022-04-07 13:48:59 +08:00
commit 16babd2b64

View file

@ -358,8 +358,9 @@ bool get_proc_self_stat(SrsProcSelfStat& r)
srs_warn("open self cpu stat failed, ignore");
return false;
}
fscanf(f, "%d %32s %c %d %d %d %d "
// Note that we must read less than the size of r.comm, such as %31s for r.comm is char[32].
fscanf(f, "%d %31s %c %d %d %d %d "
"%d %u %lu %lu %lu %lu "
"%lu %lu %ld %ld %ld %ld "
"%ld %ld %llu %lu %ld "