From 0d898d06478b8fb97b4d1925f3d19be69ff81f47 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 1 May 2024 13:11:47 +0000 Subject: [PATCH] Restyled by clang-format --- src/platform/Linux/DiagnosticDataProviderImpl.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/platform/Linux/DiagnosticDataProviderImpl.cpp b/src/platform/Linux/DiagnosticDataProviderImpl.cpp index ee16a26e080789..6718d28367e461 100644 --- a/src/platform/Linux/DiagnosticDataProviderImpl.cpp +++ b/src/platform/Linux/DiagnosticDataProviderImpl.cpp @@ -248,7 +248,8 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetCurrentHeapUsed(uint64_t & currentHeap currentHeapUsed = mallocInfo.uordblks; // Update the maximum heap high watermark if the current heap usage exceeds it. - if (currentHeapUsed > maxHeapHighWatermark) { + if (currentHeapUsed > maxHeapHighWatermark) + { maxHeapHighWatermark = currentHeapUsed; } return CHIP_NO_ERROR; @@ -269,7 +270,8 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetCurrentHeapHighWatermark(uint64_t & cu // the hard disk, called swap space, and free up that page of memory. So it is impossible // to know accurately peak physical memory it use. // Update the maximum heap high watermark if the current heap usage exceeds it. - if (static_cast(mallocInfo.uordblks) > static_cast(maxHeapHighWatermark)) { + if (static_cast(mallocInfo.uordblks) > static_cast(maxHeapHighWatermark)) + { maxHeapHighWatermark = mallocInfo.uordblks; } @@ -288,7 +290,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::ResetWatermarks() // On Linux, the write operation is non-op since we always rely on the mallinfo system // function to get the current heap memory. struct mallinfo mallocInfo = mallinfo(); - maxHeapHighWatermark = mallocInfo.uordblks; + maxHeapHighWatermark = mallocInfo.uordblks; return CHIP_NO_ERROR; }