# [PATCH] Correct output of git-count-objects.

2 messages from 2008-09-08 to 2008-09-08. Participants: Mikael Magnusson, Junio C Hamano.
Thread: https://gitlist.dev/t/15431

## Mikael Magnusson, 2008-09-08 17:56

Subject: [PATCH] Correct output of git-count-objects.
Message-ID: <alpine.LNX.1.00.0809081952590.30512@localhost>
URL: https://gitlist.dev/e/alpine.LNX.1.00.0809081952590.30512%40localhost

```
The non-verbose output was not changed in
fdb2a2a600969598fd80f01b009fbbb020d596ab ("compat: introduce on_disk_bytes()")
which caused git-count-objects to claim 512 times too much space used for 
loose objects.
---
 builtin-count-objects.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin-count-objects.c b/builtin-count-objects.c
index 6e80fe7..ab35b65 100644
--- a/builtin-count-objects.c
+++ b/builtin-count-objects.c
@@ -126,6 +126,6 @@ int cmd_count_objects(int argc, const char **argv, const char *prefix)
 	}
 	else
 		printf("%lu objects, %lu kilobytes\n",
-		       loose, loose_size / 2);
+		       loose, loose_size / 1024);
 	return 0;
 }
-- 
1.6.0.GIT


--
Mikael Magnusson

```

## Junio C Hamano, 2008-09-08 23:00

Subject: Re: [PATCH] Correct output of git-count-objects.
Message-ID: <7vbpyydz08.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vbpyydz08.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <alpine.LNX.1.00.0809081952590.30512@localhost>

```
Thanks.

This is an obvious one-liner that nobody possibly can accuse us of
stealing from anything proprietary, but as a general principle, please
sign-off your patch next time.

```
