diff --git a/test.cpp b/test.cpp index 4b5bb05..56aa43b 100644 --- a/test.cpp +++ b/test.cpp @@ -60,7 +60,7 @@ static void StatLoop(){ for(int i = 0; i < 64; i++){ sprintf(cmdStr, "/ch/%d/par/SelfTrgRate", i); 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/ChDeadtimeMonitor", true); @@ -73,7 +73,7 @@ static void StatLoop(){ influx->WriteData("testing"); influx->ClearDataPointsBuffer(); digi->PrintStat(); - usleep(500*1000); // every 500 msec + usleep(1000*1000); // every 1000 msec } }