fix file size byte unit suffix
Correct suffix for byte is B, b is for bit.
This commit is contained in:
parent
d8bad43b3c
commit
4f56d5dec6
1 changed files with 2 additions and 2 deletions
4
stagit.c
4
stagit.c
|
@ -598,7 +598,7 @@ writeblob(git_object *obj, const char *fpath, const char *filename, git_off_t fi
|
|||
writeheader(fp);
|
||||
fputs("<p> ", fp);
|
||||
xmlencode(fp, filename, strlen(filename));
|
||||
fprintf(fp, " (%jub)", (uintmax_t)filesize);
|
||||
fprintf(fp, " (%juB)", (uintmax_t)filesize);
|
||||
fputs("</p><hr/>", 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("</td></tr>\n", fp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue