From 4bd91df5de61413dca9d73de416c0a0cce0bf5e9 Mon Sep 17 00:00:00 2001 From: stever Date: Wed, 17 Jun 1998 07:00:27 +0000 Subject: [PATCH] Fixed "ls -s" kilobyte calculation. See PR#48 for details. --- bin/ls/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ls/ls.c b/bin/ls/ls.c index 9bba2fd..a1a0394 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -414,7 +414,7 @@ DirEntryRecGS *entry; if (entry->fileType == 0x0F) dirflag = TRUE; /*if (mult && entry->fileType == 0x0f) continue;*/ afile = TRUE; - if (inK) printf("%4ld ",((entry->eof+entry->resourceEOF)/1024)+1); + if (inK) printf("%4ld ",(entry->eof+entry->resourceEOF+1023)/1024); /* time = 0 means do mod date, = 1 means do create date */ /*time = (sortRoutine == CompareCreate) ? 1 : 0;*/ if (fl_longOutput) long_out(d->entry_ptrs[i]);