From: John Kacur Subject: Re: [patch 2/3] cyclictest: Convert the offset of the alignment option to microseconds Date: Mon, 8 Jun 2015 19:31:51 +0200 (CEST) Message-ID: References: <20150526190333.510838769@glx-um.de> <20150526190443.640221319@glx-um.de> <47e6a4612898bdcbcf3073f27ab93708@tglx.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Thomas Gleixner , John Kacur , linux-rt-users@vger.kernel.org, Clark Williams To: Anna-Maria Gleixner Return-path: Received: from mail-wi0-f170.google.com ([209.85.212.170]:38430 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751583AbbFHRcJ (ORCPT ); Mon, 8 Jun 2015 13:32:09 -0400 Received: by wibdq8 with SMTP id dq8so93038016wib.1 for ; Mon, 08 Jun 2015 10:32:08 -0700 (PDT) In-Reply-To: Sender: linux-rt-users-owner@vger.kernel.org List-ID: On Mon, 8 Jun 2015, Anna-Maria Gleixner wrote: > On Tue, 2 Jun 2015, Thomas Gleixner wrote: > > Fair enough. Let her resend then. > > I'm sorry. Now it applies. > Anna-Maria > > > 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 > --- > src/cyclictest/cyclictest.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > Index: rt-tests/src/cyclictest/cyclictest.c > =================================================================== > --- rt-tests.orig/src/cyclictest/cyclictest.c > +++ rt-tests/src/cyclictest/cyclictest.c > @@ -1289,9 +1289,9 @@ static void process_options (int argc, c > case OPT_ALIGNED: > aligned=1; > if (optarg != NULL) > - offset = atoi(optarg); > + offset = atoi(optarg) * 1000; > else if (optind - offset = atoi(argv[optind]); > + offset = atoi(argv[optind]) * 1000; > else > offset = 0; > break; > -- Thanks, applied, this will be in the next release John