From 4f56d5dec6c8fa5aabcac0154235fedeebe1f186 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Sun, 10 Jan 2016 00:48:01 +0100 Subject: [PATCH] fix file size byte unit suffix Correct suffix for byte is B, b is for bit. --- stagit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stagit.c b/stagit.c index 47b6fbc..3ab865e 100644 --- a/stagit.c +++ b/stagit.c @@ -598,7 +598,7 @@ writeblob(git_object *obj, const char *fpath, const char *filename, git_off_t fi writeheader(fp); fputs("

", fp); xmlencode(fp, filename, strlen(filename)); - fprintf(fp, " (%jub)", (uintmax_t)filesize); + fprintf(fp, " (%juB)", (uintmax_t)filesize); fputs("


", fp); if (git_blob_is_binary((git_blob *)obj)) { @@ -708,7 +708,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *branch, const char *path) if (showlinecount && lc > 0) fprintf(fp, "%dL", lc); else - fprintf(fp, "%jub", (uintmax_t)filesize); + fprintf(fp, "%juB", (uintmax_t)filesize); fputs("\n", fp); } -- 2.30.2