On Sun, May 27, 2007 at 11:10:40PM +0200, Josip Rodin wrote:
> > > Yes, I am aware of the issue, this is due to somewhat inefficient width
> > > calculation (and default configuration suited to my previous small
> > > monitor :-)), see 'format' in /etc/pydfrc.
> > > I have plans to re-design the formatting routines, therefore I have not
> > > closed the bug yet.
> >
> > Regarding format in pydfrc, that data structure is a completely
> > non-intuitive thing to use in a configuration file. But now that I see that,
> > it's obvious how to improve it - make the default for 'bar' be something
> > other than 0.1% of screen size?! :)
> >
> > With a standard 80 column screen, I see good results with 20.0 (percent).
>
> Erm. Maybe that's not percent. What I didn't notice was this:
>
> /usr/lib/python2.4/string.py:431: DeprecationWarning: integer argument
> expected, got float
> return s.ljust(width, *args)
>
> What went wrong there?
I should mention the exact setting that provoked that:
% cat .pydfrc
format = [
('fs', 0.2, "l"), ('size', 6, "r"),
('used', 6, "r"), ('avail', 6, "r"), ('perc', 5, "r"),
('bar', 20.0, "l"), ('on', 0.2, "l")
]
%
--
2. That which causes joy or happiness.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]