File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,8 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetCurrentHeapUsed(uint64_t & currentHeap
248
248
currentHeapUsed = mallocInfo.uordblks ;
249
249
250
250
// Update the maximum heap high watermark if the current heap usage exceeds it.
251
- if (currentHeapUsed > maxHeapHighWatermark) {
251
+ if (currentHeapUsed > maxHeapHighWatermark)
252
+ {
252
253
maxHeapHighWatermark = currentHeapUsed;
253
254
}
254
255
return CHIP_NO_ERROR;
@@ -269,7 +270,8 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetCurrentHeapHighWatermark(uint64_t & cu
269
270
// the hard disk, called swap space, and free up that page of memory. So it is impossible
270
271
// to know accurately peak physical memory it use.
271
272
// Update the maximum heap high watermark if the current heap usage exceeds it.
272
- if (static_cast <ssize_t >(mallocInfo.uordblks ) > static_cast <ssize_t >(maxHeapHighWatermark)) {
273
+ if (static_cast <ssize_t >(mallocInfo.uordblks ) > static_cast <ssize_t >(maxHeapHighWatermark))
274
+ {
273
275
maxHeapHighWatermark = mallocInfo.uordblks ;
274
276
}
275
277
@@ -288,7 +290,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::ResetWatermarks()
288
290
// On Linux, the write operation is non-op since we always rely on the mallinfo system
289
291
// function to get the current heap memory.
290
292
struct mallinfo mallocInfo = mallinfo ();
291
- maxHeapHighWatermark = mallocInfo.uordblks ;
293
+ maxHeapHighWatermark = mallocInfo.uordblks ;
292
294
293
295
return CHIP_NO_ERROR;
294
296
}
You can’t perform that action at this time.
0 commit comments