]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
cpuview: log non-fatal error in verbose mode only
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 11 Oct 2021 08:22:40 +0000 (10:22 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 14 Oct 2021 14:53:11 +0000 (16:53 +0200)
Fixes: #482
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/proc_cpuview.c

index 12ceea48375004ce751f0d3c38357beea79eb209..f17c1137d7baff94379d71bd0dc5c955e0f582a9 100644 (file)
@@ -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;
                }
        }