Skip to content

Commit

Permalink
Merge pull request #486 from brauner/2021-10-11.fixes
Browse files Browse the repository at this point in the history
cpuview: log non-fatal error in verbose mode only
  • Loading branch information
stgraber authored Oct 11, 2021
2 parents e824975 + cc49667 commit f4ee7eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/proc_cpuview.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,9 @@ int cpuview_proc_stat(const char *cg, const char *cpuset,

if (all_used >= cg_used) {
cg_cpu_usage[curcpu].idle = idle + (all_used - cg_used);

} else {
lxcfs_error("cpu%d from %s has unexpected cpu time: %" PRIu64 " in /proc/stat, %" PRIu64 " in cpuacct.usage_all; unable to determine idle time",
curcpu, cg, all_used, cg_used);
lxcfs_v("cpu%d from %s has unexpected cpu time: %" PRIu64 " in /proc/stat, %" PRIu64 " in cpuacct.usage_all; unable to determine idle time",
curcpu, cg, all_used, cg_used);
cg_cpu_usage[curcpu].idle = idle;
}
}
Expand Down

0 comments on commit f4ee7eb

Please sign in to comment.