Add memFrag (#345)

This commit is contained in:
Darrell 2022-02-24 19:19:18 -05:00 committed by GitHub
parent fee09d35d3
commit 5984a42f91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -64,8 +64,8 @@ bool sendTelemetry(int totalSeen, int totalFpSeen, int totalFpQueried, int total
doc["reconnectTries"] = reconnectTries;
doc["freeHeap"] = ESP.getFreeHeap();
doc["minFreeHeap"] = ESP.getMinFreeHeap();
doc["maxAllocHeap"] = ESP.getMaxAllocHeap();
doc["memFrag"] = 100 - (ESP.getMaxAllocHeap() * 100.0 / ESP.getFreeHeap());
doc["resetReason"] = resetReason(rtc_get_reset_reason(0));
char teleMessageBuffer[512];