Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Oct 20, 2023
1 parent 6f38a6a commit 80dea1f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions include/aws/common/system_resource_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions source/posix/system_resource_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion source/windows/system_resource_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 80dea1f

Please sign in to comment.