GNU bug report logs - #59272
[PATCH] Make Memory Human Readable in proced Buffers

Previous Next

Package: emacs;

Reported by: Laurence Warne <laurencewarne <at> gmail.com>

Date: Mon, 14 Nov 2022 23:17:05 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 59272 <at> debbugs.gnu.org (full text, mbox):

From: Laurence Warne <laurencewarne <at> gmail.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 59272 <at> debbugs.gnu.org, Visuwesh <visuweshm <at> gmail.com>,
 Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#59272: [PATCH] Make Memory Human Readable in proced Buffers
Date: Tue, 15 Nov 2022 09:51:53 +0000
[Message part 1 (text/plain, inline)]
I think the suggestion to use a custom variable (or just use
byte-count-to-string) is a good one, but AFAICS the argument to
file-size-human-readable should be bytes, but proced gets rss and vsize
from 'process-attributes' which uses kilobytes.  So we're still stuck with
having to choose one of:

(funcall #'byte-count-to-string-function (* 1000 kilobytes))
(funcall #'byte-count-to-string-function (* 1024 kilobytes))

I'm not really familiar with c, so I can't tell from process.c

On Tue, Nov 15, 2022 at 8:59 AM Stefan Kangas <stefankangas <at> gmail.com>
wrote:

> Juri Linkov <juri <at> linkov.net> writes:
>
> > Maybe the default should be the same as in byte-count-to-string-function?
>
> Make sense to me.  Or maybe we should just use that variable?
>
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 246 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.