summaryrefslogtreecommitdiffstats
path: root/src/cyclictest/cyclictest.c
diff options
context:
space:
mode:
authorAnna-Maria Gleixner <anna-maria@glx-um.de>2015-05-30 13:01:54 +0200
committerJohn Kacur <jkacur@redhat.com>2015-06-08 19:30:54 +0200
commit7b16a551c5ff2d9ffa84306b834741fa613598b6 (patch)
treec329ffc757fdfcf261c15695bc69d81f09cb9461 /src/cyclictest/cyclictest.c
parent5265d5ed963bef595ca19dcfdedde1a48859cc2d (diff)
downloadrt-tests-7b16a551c5ff2d9ffa84306b834741fa613598b6.tar.gz
cyclictest: Convert the offset of the alignment option to microseconds
The offset is specified in microseconds according to the documentation, but, the microseconds to nanoseconds conversion is missing so the effective offset has the unit of nanoseconds. Signed-off-by: Anna-Maria Gleixner <anna-maria@glx-um.de> Signed-off-by: John Kacur <jkacur@redhat.com>
Diffstat (limited to 'src/cyclictest/cyclictest.c')
-rw-r--r--src/cyclictest/cyclictest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index 95bdfc3..c3c671c 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -1289,9 +1289,9 @@ static void process_options (int argc, char *argv[], int max_cpus)
case OPT_ALIGNED:
aligned=1;
if (optarg != NULL)
- offset = atoi(optarg);
+ offset = atoi(optarg) * 1000;
else if (optind<argc && atoi(argv[optind]))
- offset = atoi(argv[optind]);
+ offset = atoi(argv[optind]) * 1000;
else
offset = 0;
break;