mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
.
This commit is contained in:
@@ -126,6 +126,7 @@ class Loging : public IoTItem {
|
|||||||
//выгрузка по частям, по одному файлу
|
//выгрузка по частям, по одному файлу
|
||||||
publishJsonPartly("/lg/" + fname, calculateMaxCount(), i);
|
publishJsonPartly("/lg/" + fname, calculateMaxCount(), i);
|
||||||
//}
|
//}
|
||||||
|
//удаление старых файлов
|
||||||
if (fileUnixTime < (unixTime - (keepdays * 86400))) {
|
if (fileUnixTime < (unixTime - (keepdays * 86400))) {
|
||||||
SerialPrint("i", F("Loging"), "'" + id + "' file '" + fname + "' too old, deleted");
|
SerialPrint("i", F("Loging"), "'" + id + "' file '" + fname + "' too old, deleted");
|
||||||
removeFile(directory + "/" + fname);
|
removeFile(directory + "/" + fname);
|
||||||
|
|||||||
Reference in New Issue
Block a user