All of lore.kernel.org
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung at gmail.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH] devices: Fix processing /proc/net/dev file
Date: Mon, 15 Oct 2012 23:56:30 +0900	[thread overview]
Message-ID: <1350312990.1507.11.camel@leonhard> (raw)
In-Reply-To: 20121015144730.GB3140@swordfish.minsk.epam.com

[-- Attachment #1: Type: text/plain, Size: 471 bytes --]

2012-10-15 (월), 07:47 -0700, Sergey Senozhatsky:
> On (10/15/12 23:33), Namhyung Kim wrote:
> > @@ -114,7 +114,7 @@ static void do_proc_net_dev(void)
> >  			c2 = c;
> >  			val = strtoull(c, &c, 10);
> >  			i++;
> > -			if (i == 1 || i == 10)
> > +			if (i == 2 || i == 10)
> >  				pkt += val;
> >  
> >  		}
> > -- 
> 
> or `i++' after `if (i == 1 || i == 10)'.

But if we moved `i++', it should be `if (i == 1 || i == 9)'.

Thanks,
Namhyung



             reply	other threads:[~2012-10-15 14:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-15 14:56 Namhyung Kim [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-10-15 16:22 [Powertop] [PATCH] devices: Fix processing /proc/net/dev file Chris Ferron
2012-10-15 14:59 Sergey Senozhatsky
2012-10-15 14:47 Sergey Senozhatsky
2012-10-15 14:33 Namhyung Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1350312990.1507.11.camel@leonhard \
    --to=powertop@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.