DVS - load library also from ../lib, perf fix

This commit is contained in:
Martin Pulec
2011-10-06 19:10:50 +02:00
parent 6416ed417b
commit 2dd429d365
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
}
tv_cur.tv_sec = tmp->tv_sec;
tv_cur.tv_usec = tmp->tv_usec;
if(tv_gt(tv_old, tv_cur) && tv_diff_usec(tv_old, tv_cur) < 100000) /* 0.1 sec out of order is OK */
if(tv_gt(tv_old, tv_cur) && tv_diff_usec(tv_old, tv_cur) > 1000) /* 0.001 sec out of order is OK */
//tmp->tv_usec < tv_old.tv_usec)
{
usleep(100000);

View File

@@ -122,7 +122,7 @@ void * openDVSLibrary()
} else {
path = strdup("../lib/");
}
if (stat("./" kLibName, &buf) == 0)
if (stat(path, &buf) == 0)
handle = dlopen(path, RTLD_NOW|RTLD_GLOBAL);
else
handle = dlopen(kLibName, RTLD_NOW|RTLD_GLOBAL);