diff --git a/CronosAgent.c b/CronosAgent.c index b0e6185..ebe76c6 100644 --- a/CronosAgent.c +++ b/CronosAgent.c @@ -775,7 +775,7 @@ int main(int argc, const char* argv[]) if (event->data.fd == timerHandle1) { uint64_t information; - read(timerHandle, &information, sizeof(information)); + read(timerHandle1, &information, sizeof(information)); clock_gettime(CLOCK_MONOTONIC, &now); #endif @@ -815,7 +815,7 @@ int main(int argc, const char* argv[]) if (event->data.fd == timerHandle2) { uint64_t information; - read(timerHandle, &information, sizeof(information)); + read(timerHandle2, &information, sizeof(information)); #endif #ifdef __MACH__ if ((event->ident == 2) &&