Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2023 16:23:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262950] 13.1-BETA3: weird top SWAP output
Message-ID:  <bug-262950-227-HKWKPcIgZh@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262950-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262950-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262950

Thomas Hurst <tom@hur.st> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tom@hur.st

--- Comment #1 from Thomas Hurst <tom@hur.st> ---
Indeed, running out of swap gets you:

  Swap: 8192M Total, 8192M Used, K Free, 100% Inuse

Looking at display.c:summary_format(), if the value were zero it would just
skip that field, but if it becomes negative it displays the field name with=
out
a value:

  if (num > 0)
    ..=20=20
  /* ignore negative numbers, but display corresponding string */
  else if (num < 0)
  {
      p =3D stpcpy(p, thisname);
  }

Seems a bit arbitrary.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262950-227-HKWKPcIgZh>