mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 00:58:01 +02:00
added usleep to remove the 100%cpu, removed a insignificant printout
This commit is contained in:
@ -326,7 +326,7 @@ uint32_t Listener::ListenToAnImage(char* buf) {
|
||||
|
||||
//look for carry over
|
||||
if (carryOverFlag) {
|
||||
bprintf(RED,"%d carry flag\n",index);
|
||||
//bprintf(RED,"%d carry flag\n",index);
|
||||
//check if its the current image packet
|
||||
// -------------------------- new header ----------------------------------------------------------------------
|
||||
if (standardheader) {
|
||||
|
@ -58,6 +58,7 @@ void GetData(uint64_t frameNumber, uint32_t expLength, uint32_t packetNumber, ui
|
||||
int main(int argc, char *argv[]) {
|
||||
|
||||
keeprunning = true;
|
||||
bprintf(BLUE,"[ Pid: %ld ]\n", (long)getpid());
|
||||
|
||||
// Catch signal SIGINT to close files and call destructors properly
|
||||
struct sigaction sa;
|
||||
@ -137,7 +138,8 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
FILE_LOG(logINFO) << "Ready ... ";
|
||||
bprintf(GRAY, "\n[ Press \'Ctrl+c\' to exit ]\n");
|
||||
while(keeprunning);
|
||||
while(keeprunning)
|
||||
usleep(5 * 1000 * 1000);
|
||||
|
||||
delete receiver;
|
||||
FILE_LOG(logINFO) << "Goodbye!";
|
||||
|
Reference in New Issue
Block a user