now its just trying things out
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
parent
00214dc378
commit
bc72f59abb
@ -20,13 +20,15 @@ ReturnValue_t PersistentSingleTmStoreTask::performOperation(uint8_t opCode) {
|
|||||||
if (not busy) {
|
if (not busy) {
|
||||||
TaskFactory::delayTask(100);
|
TaskFactory::delayTask(100);
|
||||||
} else if (dumpContext.vcBusyDuringDump) {
|
} else if (dumpContext.vcBusyDuringDump) {
|
||||||
TaskFactory::delayTask(10);
|
TaskFactory::delayTask(20);
|
||||||
} else if (fileHasSwapped) {
|
} else if (fileHasSwapped) {
|
||||||
TaskFactory::delayTask(10);
|
TaskFactory::delayTask(20);
|
||||||
} else if (dumpContext.packetWasDumped and dumpContext.numberOfDumpedPackets % 50 == 0) {
|
} else if (dumpContext.packetWasDumped and
|
||||||
TaskFactory::delayTask(10);
|
dumpContext.numberOfDumpedPackets - dumpContext.bytesDumpedAtLastDelay >= 2048) {
|
||||||
|
dumpContext.bytesDumpedAtLastDelay = dumpContext.dumpedBytes;
|
||||||
|
TaskFactory::delayTask(20);
|
||||||
} else {
|
} else {
|
||||||
// TaskFactory::delayTask(5);
|
TaskFactory::delayTask(10);
|
||||||
}
|
}
|
||||||
// else if(dumpContext.numberOfDumpedPackets % 20 == 0) {
|
// else if(dumpContext.numberOfDumpedPackets % 20 == 0) {
|
||||||
// Manual load management because I don't know what the scheduler is doing..
|
// Manual load management because I don't know what the scheduler is doing..
|
||||||
|
@ -14,11 +14,13 @@ class TmStoreTaskBase : public SystemObject {
|
|||||||
dumpedBytes = 0;
|
dumpedBytes = 0;
|
||||||
vcBusyDuringDump = false;
|
vcBusyDuringDump = false;
|
||||||
packetWasDumped = false;
|
packetWasDumped = false;
|
||||||
|
bytesDumpedAtLastDelay = 0;
|
||||||
ptmeBusyCounter = 0;
|
ptmeBusyCounter = 0;
|
||||||
}
|
}
|
||||||
const Event eventIfDone;
|
const Event eventIfDone;
|
||||||
uint32_t numberOfDumpedPackets = 0;
|
size_t numberOfDumpedPackets = 0;
|
||||||
uint32_t dumpedBytes = 0;
|
size_t bytesDumpedAtLastDelay = 0;
|
||||||
|
size_t dumpedBytes = 0;
|
||||||
uint32_t ptmeBusyCounter = 0;
|
uint32_t ptmeBusyCounter = 0;
|
||||||
bool packetWasDumped = false;
|
bool packetWasDumped = false;
|
||||||
bool vcBusyDuringDump = false;
|
bool vcBusyDuringDump = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user