fix file size byte unit suffix
Correct suffix for byte is B, b is for bit.
1 files changed, 2 insertions(+), 2 deletions(-) | |||
---|---|---|---|
M | stagit.c | +2 | -2 |
1@@ -598,7 +598,7 @@ writeblob(git_object *obj, const char *fpath, const char *filename, git_off_t fi
2 writeheader(fp);
3 fputs("<p> ", fp);
4 xmlencode(fp, filename, strlen(filename));
5- fprintf(fp, " (%jub)", (uintmax_t)filesize);
6+ fprintf(fp, " (%juB)", (uintmax_t)filesize);
7 fputs("</p><hr/>", fp);
8
9 if (git_blob_is_binary((git_blob *)obj)) {
10@@ -708,7 +708,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *branch, const char *path)
11 if (showlinecount && lc > 0)
12 fprintf(fp, "%dL", lc);
13 else
14- fprintf(fp, "%jub", (uintmax_t)filesize);
15+ fprintf(fp, "%juB", (uintmax_t)filesize);
16 fputs("</td></tr>\n", fp);
17 }
18