Skip to content

Commit c4e37c2

Browse files
authored
Updated the comments on resetwatermarks (#33309)
1 parent 3c5b92c commit c4e37c2

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)