Introduction
Introduction Statistics Contact Development Disclaimer Help
tfix file size byte unit suffix - stagit - static git page generator
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit 4f56d5dec6c8fa5aabcac0154235fedeebe1f186
parent d8bad43b3c67a344fe78b6bdab36d414ed9ff13b
Author: Quentin Rameau <[email protected]>
Date: Sun, 10 Jan 2016 00:48:01 +0100
fix file size byte unit suffix
Correct suffix for byte is B, b is for bit.
Diffstat:
M stagit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/stagit.c b/stagit.c
t@@ -598,7 +598,7 @@ writeblob(git_object *obj, const char *fpath, const char *…
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)) {
t@@ -708,7 +708,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *branc…
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);
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.