mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
доработка автоудаления
This commit is contained in:
@@ -127,7 +127,7 @@ class Loging : public IoTItem {
|
|||||||
publishJsonPartly("/lg/" + fname, calculateMaxCount(), i);
|
publishJsonPartly("/lg/" + fname, calculateMaxCount(), i);
|
||||||
//}
|
//}
|
||||||
//удаление старых файлов
|
//удаление старых файлов
|
||||||
if (fileUnixTime < (unixTime - (keepdays * 86400))) {
|
if ((fileUnixTime + (points * interval)) < (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