Skip to content

Commit a1d1898

Browse files
committedMay 6, 2024
Updated the comments on resetwatermarks
1 parent 062e063 commit a1d1898

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/platform/Linux/DiagnosticDataProviderImpl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ CHIP_ERROR DiagnosticDataProviderImpl::ResetWatermarks()
287287
// If implemented, the server SHALL set the value of the CurrentHeapHighWatermark attribute to the
288288
// value of the CurrentHeapUsed.
289289

290-
// On Linux, the write operation is non-op since we always rely on the mallinfo system
291-
// function to get the current heap memory.
290+
// Get the current amount of heap memory, in bytes, that are being used by
291+
// the current running program and reset the max heap high watermark to current heap amount.
292292
struct mallinfo mallocInfo = mallinfo();
293293
maxHeapHighWatermark = mallocInfo.uordblks;
294294

0 commit comments

Comments
 (0)