From 1fdd439323e9c72aa0e7e0e7eed5ab03e71252aa Mon Sep 17 00:00:00 2001 From: Paolo Insogna Date: Tue, 7 Jan 2025 14:27:31 +0100 Subject: [PATCH] process: linted code --- src/node_process_methods.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/node_process_methods.cc b/src/node_process_methods.cc index 37e8e7af9a3314..ea0fe3c0e851cc 100644 --- a/src/node_process_methods.cc +++ b/src/node_process_methods.cc @@ -147,8 +147,9 @@ static void ThreadCPUUsage(const FunctionCallbackInfo& args) { double* fields = static_cast(ab->Data()); #if defined(_WIN32) - // On Windows, GetCurrentThread will return the current thread pseudo-handler, which is then - // used in GetThreadTimes to retrieve the current thread timing information. + // On Windows, GetCurrentThread will return the current thread pseudo-handler, + // which is then used in GetThreadTimes to retrieve the current thread timing + // information. // The documentation is accessible here: // https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentthread // https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getthreadtimes @@ -189,11 +190,11 @@ static void ThreadCPUUsage(const FunctionCallbackInfo& args) { fields[0] = MICROS_PER_SEC * usage.user_time.seconds + usage.user_time.microseconds; fields[1] = MICROS_PER_SEC * usage.system_time.seconds + - usage.system_time.microseconds; + usage.system_time.microseconds; #else - // On other Unix / Linux, getrusage(2) with RUSAGE_THREAD is used to get - // the current thread CPU usage. - // The documentation is accessible by running man getrusage. + // On other Unix / Linux, getrusage(2) with RUSAGE_THREAD is used to get + // the current thread CPU usage. + // The documentation is accessible by running man getrusage. struct rusage usage; if (getrusage(RUSAGE_THREAD, &usage) == -1) {