Commit 43ad4169 authored by jehan's avatar jehan

fix function choosing best clock mode

parent 7d16f4fb
...@@ -491,7 +491,7 @@ static int find_best_clock_id () { ...@@ -491,7 +491,7 @@ static int find_best_clock_id () {
#endif #endif
if (clock_id==-1) { if (clock_id==-1) {
if (clock_gettime(DEFAULT_CLOCK_MODE,&ts)!=1){ if (clock_gettime(DEFAULT_CLOCK_MODE,&ts)!=1){
clock_id=CLOCK_MONOTONIC; clock_id=DEFAULT_CLOCK_MODE;
} else if (clock_gettime(CLOCK_REALTIME,&ts)!=1){ } else if (clock_gettime(CLOCK_REALTIME,&ts)!=1){
clock_id=CLOCK_REALTIME; clock_id=CLOCK_REALTIME;
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment