Skip to content

Commit 74c4775

Browse files
committed
fix: adjust structure initialization in GetMemoryUsage for consistency and clarity
1 parent 750c6e3 commit 74c4775

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/execution_tree/BytecodeCommands.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ std::expected<ExecutionResult, std::runtime_error> GetMemoryUsage(PassedExecutio
20802080
return std::unexpected(std::runtime_error("GetMemoryUsage: failed to get process memory info"));
20812081
}
20822082
#elif __APPLE__
2083-
struct task_basic_info info{};
2083+
struct task_basic_info info {};
20842084
mach_msg_type_number_t size = sizeof(info);
20852085
kern_return_t kerr = task_info(mach_task_self(), TASK_BASIC_INFO, reinterpret_cast<task_info_t>(&info), &size);
20862086
if (kerr == KERN_SUCCESS) {
@@ -2090,7 +2090,7 @@ std::expected<ExecutionResult, std::runtime_error> GetMemoryUsage(PassedExecutio
20902090
}
20912091
#else
20922092
// Linux: Use getrusage() system call
2093-
struct rusage usage{};
2093+
struct rusage usage {};
20942094
constexpr size_t kBytesInRusageUnit = 1024;
20952095
if (getrusage(RUSAGE_SELF, &usage) != 0) {
20962096
return std::unexpected(std::runtime_error("GetMemoryUsage: getrusage() failed"));

0 commit comments

Comments
 (0)