projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8bad43
)
fix file size byte unit suffix
author
Quentin Rameau
<quinq@fifth.space>
Sat, 9 Jan 2016 23:48:01 +0000
(
00:48
+0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Wed, 13 Jan 2016 20:58:08 +0000
(21:58 +0100)
Correct suffix for byte is B, b is for bit.
stagit.c
patch
|
blob
|
history
diff --git
a/stagit.c
b/stagit.c
index 47b6fbc78e3db4e5e1d583943a4fef49bf7b1eb6..3ab865e3f4d8b7eaa7a477b3bc72a1fcd70b8794 100644
(file)
--- 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("<p> ", fp);
xmlencode(fp, filename, strlen(filename));
- fprintf(fp, " (%ju
b
)", (uintmax_t)filesize);
+ fprintf(fp, " (%ju
B
)", (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, "%ju
b
", (uintmax_t)filesize);
+ fprintf(fp, "%ju
B
", (uintmax_t)filesize);
fputs("</td></tr>\n", fp);
}