NetBSD Problem Report #54328

From wiz@yt.nih.at  Wed Jun 26 20:29:55 2019
Return-Path: <wiz@yt.nih.at>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 96C3D7A15F
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 26 Jun 2019 20:29:55 +0000 (UTC)
Message-Id: <20190626190334.2E7232AC0E6@yt.nih.at>
Date: Wed, 26 Jun 2019 21:03:34 +0200 (CEST)
From: Thomas Klausner <wiz@NetBSD.org>
Reply-To: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Subject: top(1) handles first command weirdly if entered too fast
X-Send-Pr-Version: 3.95

>Number:         54328
>Category:       bin
>Synopsis:       top(1) handles first command weirdly if entered too fast
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 26 20:30:00 +0000 2019
>Originator:     Thomas Klausner
>Release:        NetBSD 8.99.42
>Organization:
Curiosity is the very basis of education and if you tell me that
curiosity killed the cat, I say only that the cat died nobly.
- Arnold Edinborough
>Environment:


Architecture: x86_64
Machine: amd64
>Description:
top handles the first key press weirdly if it's given too quickly after start.

On startup, some of the data is not shown yet, in particular the percentages, i.e.

CPU states:     % user,     % nice,     % system,     % interrupt,     % idle

On my machine it takes 1-2s until it gets replaced with actual values:

CPU states:  0.0% user,  0.0% nice,  0.5% system,  0.0% interrupt, 99.4% idle

If you press a key during that time, you can enter the necessary arguments,
but it doesn't have an immediate effect, or it's ignored.

Examples:

When you wait and press 'u' to limit to a user, after entering the user name
the display is immediately switched to show only that user; if you do that
in the first second, you have to wait for the automatic update after 5s for
it to take effect.

Similar effect for 'U'.

If you press 's' to set a new refresh interval, it's completely ignored
and stays at 5s.
>How-To-Repeat:
Start top and enter a command immediately.
>Fix:
If you're bored, yes, please.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.