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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux