From 80dea1f026c634d07f7f1a6f67f45167eb9280b6 Mon Sep 17 00:00:00 2001 From: Dmitriy Musatkin Date: Fri, 20 Oct 2023 16:24:32 -0700 Subject: [PATCH] lint --- include/aws/common/system_resource_util.h | 4 ++-- source/posix/system_resource_utils.c | 8 ++++---- source/windows/system_resource_utils.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/aws/common/system_resource_util.h b/include/aws/common/system_resource_util.h index a4a8e4860..8ab44d9ec 100644 --- a/include/aws/common/system_resource_util.h +++ b/include/aws/common/system_resource_util.h @@ -12,7 +12,7 @@ AWS_PUSH_SANE_WARNING_LEVEL AWS_EXTERN_C_BEGIN struct aws_memory_usage { - size_t maxrss; /* max resident set size in kilobytes since program start */ + size_t maxrss; /* max resident set size in kilobytes since program start */ size_t page_faults; /* num of page faults since program start */ size_t _reserved[8]; @@ -21,7 +21,7 @@ struct aws_memory_usage { /* * Get memory usage for current process. * Raises AWS_ERROR_SYS_CALL_FAILURE on failure. -*/ + */ AWS_COMMON_API int aws_memory_usage_for_current_process(struct aws_memory_usage *memory_usage); AWS_EXTERN_C_END diff --git a/source/posix/system_resource_utils.c b/source/posix/system_resource_utils.c index 7863013bb..2b928405a 100644 --- a/source/posix/system_resource_utils.c +++ b/source/posix/system_resource_utils.c @@ -18,10 +18,10 @@ int aws_memory_usage_for_current_process(struct aws_memory_usage *mu) { #if defined(AWS_OS_APPLE) /* - * For some reason Apple switched to reporting this in bytes instead of KB - * around MacOS 10.6. - * Make it back to KB. Result might be slightly off due to rounding. - */ + * For some reason Apple switched to reporting this in bytes instead of KB + * around MacOS 10.6. + * Make it back to KB. Result might be slightly off due to rounding. + */ mu->maxrss = usage.ru_maxrss / 1024; #else mu->maxrss = usage.ru_maxrss; diff --git a/source/windows/system_resource_utils.c b/source/windows/system_resource_utils.c index 847ccef94..751390f28 100644 --- a/source/windows/system_resource_utils.c +++ b/source/windows/system_resource_utils.c @@ -14,7 +14,7 @@ int aws_memory_usage_for_current_process(struct aws_memory_usage *mu) { AWS_PRECONDITION(mu); HANDLE hProcess = GetCurrentProcess(); - + PROCESS_MEMORY_COUNTERS pmc; BOOL ret = GetProcessMemoryInfo(hProcess, &pmc, sizeof(pmc));