1 diff -uNr compcache-0.5.4-old/ramzswap.c compcache-0.5.4/ramzswap.c
2 --- compcache-0.5.4-old/ramzswap.c 2009-10-18 09:14:53.000000000 +0200
3 +++ compcache-0.5.4/ramzswap.c 2009-10-18 09:12:08.000000000 +0200
7 size_t succ_writes, mem_used;
8 - unsigned int good_compress_perc = 0, no_compress_perc = 0;
9 + unsigned int good_compress_perc = 0,
10 + av_compression_perc = 0,
11 + no_compress_perc = 0;
13 mem_used = xv_get_total_size_bytes(rzs.mem_pool)
14 + (stats.pages_expand << PAGE_SHIFT);
16 if (succ_writes && stats.pages_stored) {
17 good_compress_perc = stats.good_compress * 100
19 + av_compression_perc = stats.compr_size * 100
20 + / (stats.good_compress << PAGE_SHIFT);
21 no_compress_perc = stats.pages_expand * 100
27 "GoodCompress: %8u %%\n"
28 + "AvCompression: %8u %%\n"
29 "NoCompress: %8u %%\n"
36 + av_compression_perc,
39 mem_used >> PAGE_SHIFT,