Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Feb 2011 15:52:10 +0300
From:      Sergey Kandaurov <pluknet@gmail.com>
To:        Alexander Best <arundel@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: weird characters in top(1) output
Message-ID:  <AANLkTinxVd5wieR87vpQHU6Dg4RO_CvFyoB=pN4dLc5J@mail.gmail.com>
In-Reply-To: <20110201122432.GA6786@freebsd.org>
References:  <20110201122432.GA6786@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1 February 2011 15:24, Alexander Best <arundel@freebsd.org> wrote:
> hi there,
>
> i was doing the following:
>
> top inf > ~/output
>
> when i noticed that this was missing the overall statistics line. so i we=
nt
> ahead and did:
>
> top -d2 inf > ~/output
>
> funny thing is that for the second output some weird characters seem to g=
et
> spammed into the overall statistics line:
>
> last pid: 14320; =A0load averages: =A00.42, =A00.44, =A00.37 =A0up 1+14:0=
2:02 =A0 =A013:21:05
> 249 processes: 1 running, 248 sleeping
> CPU: ^[[3;6H 7.8% user, =A00.0% nice, 10.6% system, =A00.6% interrupt, 81=
.0% idle
> Mem: 1271M Active, 205M Inact, 402M Wired, 67M Cache, 212M Buf, 18M Free
> Swap: 18G Total, 782M Used, 17G Free, 4% Inuse
>
> this only seems to happen when i redirect the top(1) output to a file. if=
 i do:
>
> top -d2 inf
>
> ...everything works fine. i verified the issue under zsh(1) and sh(1).

My quick check shows that this is a regression between 7.2 and 7.3.
Reverting r196382 fixes this bug for me.

--=20
wbr,
pluknet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinxVd5wieR87vpQHU6Dg4RO_CvFyoB=pN4dLc5J>