diff --git a/CMakeLists.txt b/CMakeLists.txt index e48079ff1f122014521a8aa59e1c167c170e8428..9257e58861a738e396b6215141fc50f6d00cc285 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -428,7 +428,7 @@ if (OPENDHT_C) ) install (TARGETS opendht-c DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht-c) install (FILES ${CMAKE_CURRENT_BINARY_DIR}/opendht-c.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) - install (FILES c/opendht_c.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include) + install (FILES c/opendht_c.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/opendht) endif () if (OPENDHT_TOOLS) diff --git a/include/opendht/scheduler.h b/include/opendht/scheduler.h index 01cee921a47b77a1a5e0b8dbc16fee98ef5fa874..1f7b9bcc4214126fb82cff0ae495ed8ba337faa5 100644 --- a/include/opendht/scheduler.h +++ b/include/opendht/scheduler.h @@ -84,6 +84,7 @@ public: * @return The time for the next job to run. */ time_point run() { + size_t count {0}; while (not timers.empty()) { auto timer = timers.begin(); /* @@ -99,7 +100,9 @@ public: if (job->do_) job->do_(); + count++; } + std::cerr << "run " << count << " scheduled " << timers.size() << std::endl; return getNextJobTime(); }