From: epg <> Date: Fri, 2 Sep 2005 23:10:14 +0000 (+0000) Subject: (filter_mail): Better int() those field widths! X-Git-Url: https://diplodocus.org/git/minc/commitdiff_plain/9447c8c2233374bded2bed725d9ae878dc8963bc (filter_mail): Better int() those field widths! --- diff --git a/minc b/minc index 91d3ed7..aab2b99 100755 --- a/minc +++ b/minc @@ -541,9 +541,9 @@ sub filter_mail { my %FOLDERS = ('SPAM'=>1); # XXX lame names and hard-coded proportions. - my $nf = $COLUMNS * 0.1; - my $nm = $COLUMNS * 0.0625; - my $nF = $COLUMNS * 0.175; + my $nf = int($COLUMNS * 0.1); + my $nm = int($COLUMNS * 0.0625); + my $nF = int($COLUMNS * 0.175); my $ns = $COLUMNS - $nf - $nm - $nF - 3; if (-f "$HOME/.minc") {