Skip to content

Commit

Permalink
Merge pull request #31 from marklee77/fix-test-nanosleep
Browse files Browse the repository at this point in the history
lkl tools: test: fix error in nanosleep timing code in boot.c
  • Loading branch information
tavip committed Dec 11, 2015
2 parents bc14a52 + d803e4f commit 43b6d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lkl/tests/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int test_nanosleep(char *str, int len)
ret = lkl_sys_nanosleep(&ts, NULL);
clock_gettime(CLOCK_MONOTONIC, &stop);

delta = (stop.tv_sec - start.tv_sec) +
delta = 1e9*(stop.tv_sec - start.tv_sec) +
(stop.tv_nsec - start.tv_nsec);

snprintf(str, len, "%ld", delta);
Expand Down

0 comments on commit 43b6d52

Please sign in to comment.