mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
увеличиваем процент свободной памяти при хранении графиков
This commit is contained in:
@@ -276,7 +276,7 @@ class Loging : public IoTItem {
|
||||
void deleteLastFile() {
|
||||
IoTFSInfo tmp = getFSInfo();
|
||||
SerialPrint("i", "Loging", String(tmp.freePer) + " % free flash remaining");
|
||||
if (tmp.freePer <= 20.00) {
|
||||
if (tmp.freePer <= 50.00) {
|
||||
String dir = "/lg/" + id;
|
||||
filesList = getFilesList(dir);
|
||||
int i = 0;
|
||||
@@ -300,9 +300,7 @@ class Loging : public IoTItem {
|
||||
_wsNum = wsNum;
|
||||
}
|
||||
|
||||
String getValue() {
|
||||
return "";
|
||||
}
|
||||
String getValue() { return ""; }
|
||||
|
||||
// void loop() {
|
||||
// if (enableDoByInt) {
|
||||
@@ -331,14 +329,10 @@ class Loging : public IoTItem {
|
||||
}
|
||||
|
||||
// просто максимальное количество точек
|
||||
int calculateMaxCount() {
|
||||
return 86400;
|
||||
}
|
||||
int calculateMaxCount() { return 86400; }
|
||||
|
||||
// путь вида: /lg/log/1231231.txt
|
||||
unsigned long getFileUnixLocalTime(String path) {
|
||||
return gmtTimeToLocal(selectToMarkerLast(deleteToMarkerLast(path, "."), "/").toInt() + START_DATETIME);
|
||||
}
|
||||
unsigned long getFileUnixLocalTime(String path) { return gmtTimeToLocal(selectToMarkerLast(deleteToMarkerLast(path, "."), "/").toInt() + START_DATETIME); }
|
||||
void setValue(const IoTValue &Value, bool genEvent = true) {
|
||||
value = Value;
|
||||
this->SetDoByInterval(String(value.valD));
|
||||
@@ -400,6 +394,4 @@ class Date : public IoTItem {
|
||||
}
|
||||
};
|
||||
|
||||
void *getAPI_Date(String param) {
|
||||
return new Date(param);
|
||||
}
|
||||
void *getAPI_Date(String param) { return new Date(param); }
|
||||
|
||||
Reference in New Issue
Block a user