[Bug 262950] 13.1-BETA3: weird top SWAP output

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 Apr 2023 16:23:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262950

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 without
a value:

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

Seems a bit arbitrary.

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