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 feb0282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ray/common/cgroup/cgroup_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace ray {

// Context used to setup cgroupv2 for a task / actor.
struct PhysicalModeExecutionContext {
// Directory for cgroup, which is appled to application process.
// Directory for cgroup, which is applied to application process.
std::string_view cgroup_directory;
// UUID to indicate the current task / actor.
std::string uuid;
Expand Down
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 feb0282

Please sign in to comment.