1
0
mirror of https://github.com/apache/httpd.git synced 2025-09-01 02:02:06 +03:00

Add printf format for ssize_t.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84112 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ben Laurie
1999-11-09 09:01:15 +00:00
parent 7c3faefb29
commit 016cf85c45

View File

@@ -639,13 +639,13 @@ API_EXPORT(void) ap_send_size(ap_ssize_t size, request_rec *r)
ap_rputs(" 1k", r);
}
else if (size < 1048576) {
ap_rprintf(r, "%4ldk", (size + 512) / 1024);
ap_rprintf(r, "%4" APR_SSIZE_T_FMT "k", (size + 512) / 1024);
}
else if (size < 103809024) {
ap_rprintf(r, "%4.1fM", size / 1048576.0);
}
else {
ap_rprintf(r, "%4ldM", (size + 524288) / 1048576);
ap_rprintf(r, "%4" APR_SSIZE_T_FMT "M", (size + 524288) / 1048576);
}
}