16 lines
758 B
Plaintext
16 lines
758 B
Plaintext
$OpenBSD: patch-FileHandle_xs,v 1.2 2010/10/19 18:56:36 bluhm Exp $
|
|
--- FileHandle.xs.orig Thu Sep 16 18:48:31 2010
|
|
+++ FileHandle.xs Thu Oct 7 01:12:09 2010
|
|
@@ -603,8 +603,9 @@ NYTP_close(NYTP_file file, int discard) {
|
|
const double ratio = file->zs.total_in / (double) file->zs.total_out;
|
|
flush_output(file, Z_FINISH);
|
|
fprintf(raw_file, "#\n"
|
|
- "# Compressed %lu bytes to %lu, ratio %f:1, data shrunk by %f%%\n",
|
|
- file->zs.total_in, file->zs.total_out, ratio,
|
|
+ "# Compressed %ju bytes to %ju, ratio %f:1, data shrunk by %f%%\n",
|
|
+ (uintmax_t)file->zs.total_in,
|
|
+ (uintmax_t)file->zs.total_out, ratio,
|
|
100 * (1 - 1 / ratio));
|
|
}
|
|
|