snapshot before changing saving data code
This commit is contained in:
parent
27120a5c9a
commit
2e35bac104
4
test.cpp
4
test.cpp
|
@ -60,7 +60,7 @@ static void StatLoop(){
|
||||||
for(int i = 0; i < 64; i++){
|
for(int i = 0; i < 64; i++){
|
||||||
sprintf(cmdStr, "/ch/%d/par/SelfTrgRate", i);
|
sprintf(cmdStr, "/ch/%d/par/SelfTrgRate", i);
|
||||||
std::string haha = digi->ReadValue( cmdStr, false);
|
std::string haha = digi->ReadValue( cmdStr, false);
|
||||||
influx->AddDataPoint("Rate,Ch=" + std::to_string(i) + " value=" + haha);
|
influx->AddDataPoint("Rate,Bd=0,Ch=" + std::to_string(i) + " value=" + haha);
|
||||||
}
|
}
|
||||||
//digi->ReadValue("/ch/4/par/ChRealtimeMonitor", true);
|
//digi->ReadValue("/ch/4/par/ChRealtimeMonitor", true);
|
||||||
//digi->ReadValue("/ch/4/par/ChDeadtimeMonitor", true);
|
//digi->ReadValue("/ch/4/par/ChDeadtimeMonitor", true);
|
||||||
|
@ -73,7 +73,7 @@ static void StatLoop(){
|
||||||
influx->WriteData("testing");
|
influx->WriteData("testing");
|
||||||
influx->ClearDataPointsBuffer();
|
influx->ClearDataPointsBuffer();
|
||||||
digi->PrintStat();
|
digi->PrintStat();
|
||||||
usleep(500*1000); // every 500 msec
|
usleep(1000*1000); // every 1000 msec
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user