Use human friendly size, which fixes RISC OS directory listings.

svn path=/trunk/netsurf/; revision=10634
This commit is contained in:
Michael Drake 2010-07-14 09:30:40 +00:00
parent c4600695c5
commit 786442f5b2
1 changed files with 4 additions and 2 deletions

View File

@ -195,8 +195,10 @@ bool directory_convert(struct content *c) {
}
else {
snprintf(buffer, sizeof(buffer),
"<td>%ld</td><td>%s</td><td>%s</td>\n",
filestat.st_size, modtime, mimetype);
"<td align=\"right\">%s</td><td>%s</td><td>%s</td>\n",
human_friendly_bytesize(
(unsigned long)filestat.st_size),
modtime, mimetype);
}
}
else {