]> diplodocus.org Git - minc/commitdiff
(filter_mail): Better int() those field widths!
authorepg <>
Fri, 2 Sep 2005 23:10:14 +0000 (23:10 +0000)
committerepg <>
Fri, 2 Sep 2005 23:10:14 +0000 (23:10 +0000)
minc

diff --git a/minc b/minc
index 91d3ed7..aab2b99 100755 (executable)
--- 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") {