mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix proc stat issue.
This commit is contained in:
parent
1e2f8dc299
commit
1d503c770f
1 changed files with 3 additions and 2 deletions
|
@ -359,7 +359,8 @@ bool get_proc_self_stat(SrsProcSelfStat& r)
|
||||||
return false;
|
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 "
|
"%d %u %lu %lu %lu %lu "
|
||||||
"%lu %lu %ld %ld %ld %ld "
|
"%lu %lu %ld %ld %ld %ld "
|
||||||
"%ld %ld %llu %lu %ld "
|
"%ld %ld %llu %lu %ld "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue