You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ka...@apache.org on 2020/03/12 14:59:50 UTC

[incubator-doris] branch master updated: [UT]Fix unit test for cgroup_util (#3094)

This is an automated email from the ASF dual-hosted git repository.

kangkaisen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new c5660fc  [UT]Fix unit test for cgroup_util (#3094)
c5660fc is described below

commit c5660fcb9de16580563f21fcfd3ac772aa7f6e3e
Author: WingC <10...@qq.com>
AuthorDate: Thu Mar 12 09:59:40 2020 -0500

    [UT]Fix unit test for cgroup_util (#3094)
    
    Co-authored-by: wangcong18 <wa...@xiaomi.com>
---
 be/src/util/cgroup_util.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/util/cgroup_util.cpp b/be/src/util/cgroup_util.cpp
index 1faad57..c2a6da1 100644
--- a/be/src/util/cgroup_util.cpp
+++ b/be/src/util/cgroup_util.cpp
@@ -188,7 +188,7 @@ Status CGroupUtil::find_cgroup_cpu_limit(float* cpu_count) {
         *cpu_count = -1;
         return Status::OK();
     }
-    string cfs_period_filename = cgroup_path + "/cfs_period_us";
+    string cfs_period_filename = cgroup_path + "/cpu.cfs_period_us";
     RETURN_IF_ERROR(read_cgroup_value(cfs_period_filename, &period));
     if (quota <= period) {
         return Status::InvalidArgument("quota <= period");


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org