mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
read LittleFS.totalBytes only once on start
This commit is contained in:
@@ -24,7 +24,7 @@ void SystemStatus::systemStatus(AsyncWebServerRequest * request) {
|
||||
root["flash_chip_size"] = ESP.getFlashChipSize();
|
||||
root["flash_chip_speed"] = ESP.getFlashChipSpeed();
|
||||
|
||||
root["fs_total"] = LittleFS.totalBytes();
|
||||
root["fs_total"] = emsesp::EMSESP::system_.FStotal();
|
||||
root["fs_used"] = LittleFS.usedBytes();
|
||||
root["uptime"] = uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user