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() {
|
void deleteLastFile() {
|
||||||
IoTFSInfo tmp = getFSInfo();
|
IoTFSInfo tmp = getFSInfo();
|
||||||
SerialPrint("i", "Loging", String(tmp.freePer) + " % free flash remaining");
|
SerialPrint("i", "Loging", String(tmp.freePer) + " % free flash remaining");
|
||||||
if (tmp.freePer <= 20.00) {
|
if (tmp.freePer <= 50.00) {
|
||||||
String dir = "/lg/" + id;
|
String dir = "/lg/" + id;
|
||||||
filesList = getFilesList(dir);
|
filesList = getFilesList(dir);
|
||||||
int i = 0;
|
int i = 0;
|
||||||
@@ -300,9 +300,7 @@ class Loging : public IoTItem {
|
|||||||
_wsNum = wsNum;
|
_wsNum = wsNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
String getValue() {
|
String getValue() { return ""; }
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
// void loop() {
|
// void loop() {
|
||||||
// if (enableDoByInt) {
|
// if (enableDoByInt) {
|
||||||
@@ -331,14 +329,10 @@ class Loging : public IoTItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// просто максимальное количество точек
|
// просто максимальное количество точек
|
||||||
int calculateMaxCount() {
|
int calculateMaxCount() { return 86400; }
|
||||||
return 86400;
|
|
||||||
}
|
|
||||||
|
|
||||||
// путь вида: /lg/log/1231231.txt
|
// путь вида: /lg/log/1231231.txt
|
||||||
unsigned long getFileUnixLocalTime(String path) {
|
unsigned long getFileUnixLocalTime(String path) { return gmtTimeToLocal(selectToMarkerLast(deleteToMarkerLast(path, "."), "/").toInt() + START_DATETIME); }
|
||||||
return gmtTimeToLocal(selectToMarkerLast(deleteToMarkerLast(path, "."), "/").toInt() + START_DATETIME);
|
|
||||||
}
|
|
||||||
void setValue(const IoTValue &Value, bool genEvent = true) {
|
void setValue(const IoTValue &Value, bool genEvent = true) {
|
||||||
value = Value;
|
value = Value;
|
||||||
this->SetDoByInterval(String(value.valD));
|
this->SetDoByInterval(String(value.valD));
|
||||||
@@ -400,6 +394,4 @@ class Date : public IoTItem {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void *getAPI_Date(String param) {
|
void *getAPI_Date(String param) { return new Date(param); }
|
||||||
return new Date(param);
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user