Date: Tue, 21 Oct 2025 07:39:01 +0200 From: Torsten Hantzsche <t.hantzsche@hzdr.de> To: freebsd-current <freebsd-current@freebsd.org> Subject: releng/15: top averages shifted Message-ID: <987e33f3-2f90-4d87-a21e-5fd92002184b@hzdr.de>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Hello,
after upgrading a test machine to "stable/15", I noticed,
running "top" under X-Windows in a standard size of 80x24,
that the 3 average values were now shifted to the right and
therefore the 15-min value got mostly hidden by the "up" time.
I found in commit b7f62c6042f8b4b322d9fa20a8c6a81a9a58c164
the explanation for that shift and tweaked 2 lines to get the old
display back for me:
diff --git a/usr.bin/top/display.c b/usr.bin/top/display.c
index b6cde0e63aa7..d76c33387659 100644
--- a/usr.bin/top/display.c
+++ b/usr.bin/top/display.c
@@ -97,7 +97,7 @@ static char * setup_buffer(char *, int);
int x_lastpid = 10;
int y_lastpid = 0;
-int x_loadave = 33;
+int x_loadave = 29;
int x_loadave_nompid = 15;
int y_loadave = 0;
int x_procstate = 0;
@@ -248,7 +248,7 @@ i_loadave(int mpid, double avenrun[])
printf("last pid: %5d; ", mpid);
}
- printf("load averages");
+ printf("load avgs");
for (i = 0; i < 3; i++)
{
Could this possibly be changed to restore the usual display behavior
again for v15?
Thanks
Torsten
[-- Attachment #2 --]
0 *H
010
`He 0 *H
F0X0@j'VDؚd
0
*H
0F10 UNL10U
GEANT Vereniging10UGEANT Personal CA 40
241118000000Z
261118235959Z010 UDE10USachsen1503U
,Helmholtz-Zentrum Dresden - Rossendorf e. V.10Ua
NTRDE-VR 16931"0 *H
t.hantzsche@hzdr.de10U Hantzsche10U*Torsten10UTorsten Hantzsche0"0
*H
0
=|E&L3FZE >b'v̞F6E1!PG*ToviDhdH&=-p" Ơ5Y5$!\6HBx='XR+V@1~lDCL!s"=TTYhG4z~u]FP*ٱ,U"$%,6E[: ;[^bQc_kR^V#ޒc5.֖k 00U#0i !X
ݧQ0U22ƫ5]t77`N0U0U0 0U%0++0PU I0G0:+1
0*0(+https://sectigo.com/SMIMECPS0 g0BU;0907531http://GEANT.crl.sectigo.com/GEANTPersonalCA4.crl0x+l0j0=+01http://GEANT.crt.sectigo.com/GEANTPersonalCA4.crt0)+0http://GEANT.ocsp.sectigo.com0U0t.hantzsche@hzdr.de0
*H
ev;~sr4(x4/}>2*0w ZQen~M
!*&BZH
EkrttF>0}݇!N$WYn)01$K1ةȄš.mMfYDeNBU"TNdS]jxBMMp,,A
uGLz ۼG,mA 1Z
Z]n
x6+ؑ,%68g`qO]n^dŕp$I:AK6O--+Iױ}1M6Tݓ>Y`1y\
iN7şf;6!H,aI,vѬH 1hjAy'-v<CV]'ľ?L1xC<Z?3w+}5%/BE*tֿK]FŶ~V9{00Π1p5$VI0
*H
010 UUS10U
New Jersey10UJersey City10U
The USERTRUST Network1.0,U%USERTrust RSA Certification Authority0
200218000000Z
330501235959Z0F10 UNL10U
GEANT Vereniging10UGEANT Personal CA 40"0
*H
0
J"^'[[52 1@PDʯJa-b3j-Bʖ<p=hxn<0d[Iep^¾r{D$8Uӡ};'Q܌=32 0ѬgGx& 5ꄪi7tbLdjK2@v7 *!즃ɽZD3'6Q_*YR4o>DAt|ز?ui+Pglwi3PeV"JD"<"KښoKv+1u#8!͋G1ߛf"Qi>g%NY.^rax1ym"x~Ti/
]rnYHϴ,,q5;}&~Wmf*r| :ؖ8ŧjraC3jf|kXo+V)25nE!u;-/
%l>v&L3(;pogS`Ӹ>/ 00U#0SyZ+JT؛f0Ui !X
ݧQ0U0U0 0U%0++08U 10/0-U 0%0#+https://sectigo.com/CPS0PUI0G0ECA?http://crl.usertrust.com/USERTrustRSACertificationAuthority.crl0v+j0h0?+03http://crt.usertrust.com/USERTrustRSAAddTrustCA.crt0%+0http://ocsp.usertrust.com0
*H
N{
9 obx?G]tC@ `JϐDW#kz9QҞ,=1t3?S
< 7D5(/Mn7j\y|A̵/k>5 C1C1XEO 4sjq#(61YmA<K_~4J5Pf7VGli/+5O7f|PkD!Uk4Odyep@Wo[+0k/5֬HM{ْY6G`43d
ԦnV0[<URO\^<ɵ((ow"*u51]+m0 3ĂVMbFNb@ڱɛ{~␘&jYzptYB
-:Ej#dDݧ/cBtFԼ3=\];62hPj)l/T#6"8$2x]si18040Z0F10 UNL10U
GEANT Vereniging10UGEANT Personal CA 4j'VDؚd
0
`He 0 *H
1 *H
0 *H
1
251021053902Z0/ *H
1" P'WwĶ& d@6P*0i +71\0Z0F10 UNL10U
GEANT Vereniging10UGEANT Personal CA 4j'VDؚd
0k*H
1\Z0F10 UNL10U
GEANT Vereniging10UGEANT Personal CA 4j'VDؚd
0l *H
1_0]0 `He*0 `He0
*H
0*H
0
*H
@0+0
*H
(0
*H
rOH|4J$Ŧmc$]T,>=̲ˇۉY6GCˑ^#Hr3CP-;[ =p
F( ;Uo"YH)Fyt G̨ܗt֫hѢZ 2m=lشoVP:=aƓ9?W [_"8
.͂Gہazs9Z= b`-s
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?987e33f3-2f90-4d87-a21e-5fd92002184b>
