mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
..
This commit is contained in:
@@ -158,7 +158,7 @@ class Loging : public IoTItem {
|
|||||||
|
|
||||||
//удаление старых файлов
|
//удаление старых файлов
|
||||||
if ((fileUnixTime + (points * (interval / 1000))) < (unixTime - (keepdays * 86400))) {
|
if ((fileUnixTime + (points * (interval / 1000))) < (unixTime - (keepdays * 86400))) {
|
||||||
SerialPrint("i", F("Loging"), "'" + id + "' file '" + buf + "' too old, deleted");
|
SerialPrint("i", F("Loging"), "file '" + buf + "' too old, deleted");
|
||||||
removeFile(buf);
|
removeFile(buf);
|
||||||
} else {
|
} else {
|
||||||
createJson(buf, i, mqtt);
|
createJson(buf, i, mqtt);
|
||||||
|
|||||||
Reference in New Issue
Block a user