mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
fixed var type
This commit is contained in:
@@ -15,7 +15,7 @@ void getFSInfo() {
|
|||||||
size_t maxPathLength = buf.maxPathLength; // лимит на пути и имена файлов
|
size_t maxPathLength = buf.maxPathLength; // лимит на пути и имена файлов
|
||||||
|
|
||||||
size_t freeBytes = totalBytes - usedBytes;
|
size_t freeBytes = totalBytes - usedBytes;
|
||||||
float freePer = freeBytes * 100 / totalBytes;
|
float freePer = ((float) freeBytes / totalBytes) * 100;
|
||||||
|
|
||||||
jsonWriteStr(configSetupJson, F("freeBytes"), String(freePer) + "% (" + String(freeBytes) + ")");
|
jsonWriteStr(configSetupJson, F("freeBytes"), String(freePer) + "% (" + String(freeBytes) + ")");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user