better sleep_for

pull/12/head
Tom Early 7 years ago
parent 16c017d28d
commit 903643bb95

@ -57,7 +57,7 @@
#include "QnetConfigure.h"
#include "QnetGateway.h"
#define IRCDDB_VERSION "QnetGateway-8.0.1"
#define IRCDDB_VERSION "QnetGateway-8.1.0"
extern void dstar_dv_init();
extern int dstar_dv_decode(const unsigned char *d, int data[3]);
@ -422,7 +422,7 @@ void CQnetGateway::GetIRCDataThread()
if (doFind) {
printf("Finding Routes for...\n");
for (auto it=findRoute.begin(); it!=findRoute.end(); it++) {
std::this_thread::sleep_for(std::chrono::milliseconds(500));
std::this_thread::sleep_for(std::chrono::milliseconds(100));
printf("\t'%s'\n", it->c_str());
ii->findUser(*it);
}

@ -52,7 +52,7 @@
#include "QnetConfigure.h"
#include "QnetLink.h"
#define LINK_VERSION "QnetLink7.0.1"
#define LINK_VERSION "QnetLink7.0.2"
std::atomic<bool> CQnetLink::keep_running(true);
@ -502,13 +502,13 @@ void CQnetLink::UnpackCallsigns(const std::string &str, std::set<std::string> &s
void CQnetLink::PrintCallsigns(const std::string &key, const std::set<std::string> &set)
{
printf("%s = [ ", key.c_str());
printf("%s = [", key.c_str());
for (auto it=set.begin(); it!=set.end(); it++) {
if (it != set.begin())
printf(", ");
printf(",");
printf("%s", (*it).c_str());
}
printf(" ]");
printf("]\n");
}
/* process configuration file */

Loading…
Cancel
Save

Powered by TurnKey Linux.