Skip to content

Commit

Permalink
strinv view for cgroup content
Browse files Browse the repository at this point in the history
Signed-off-by: dentiny <dentinyhao@gmail.com>
  • Loading branch information
dentiny committed Dec 24, 2024
1 parent a9e8dc6 commit a615cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ray/common/cgroup/cgroup_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace {
constexpr int kCgroupFilePerm = 0600;

// Open a cgroup path and append write [content] into the file.
void OpenCgroupFileAndAppend(std::string_view path, std::string content) {
void OpenCgroupFileAndAppend(std::string_view path, std::string_view content) {
std::ofstream out_file{path.data(), std::ios::out | std::ios::app};
out_file << content;
}
Expand Down

0 comments on commit a615cab

Please sign in to comment.