summaryrefslogtreecommitdiff
path: root/archivers/ppmd/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/ppmd/patches/patch-ac')
-rw-r--r--archivers/ppmd/patches/patch-ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/archivers/ppmd/patches/patch-ac b/archivers/ppmd/patches/patch-ac
new file mode 100644
index 00000000000..7a3868eb2a9
--- /dev/null
+++ b/archivers/ppmd/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2004/04/17 23:47:36 ben Exp $
+
+--- PPMd.cpp.orig 2004-04-17 16:38:06.000000000 -0700
++++ PPMd.cpp
+@@ -215,7 +215,7 @@ void _STDCALL PrintInfo(_PPMD_FILE* Deco
+ UINT n1=(8U*NEnc)/NDec;
+ UINT n2=(100U*(8U*NEnc-NDec*n1)+NDec/2U)/NDec;
+ if (n2 == 100) { n1++; n2=0; }
+- int RunTime=((clock()-StartClock) << 10)/int(CLK_TCK);
++ int RunTime=((clock()-StartClock) << 10)/int(CLOCKS_PER_SEC);
+ UINT Speed=NDec/(RunTime+(RunTime == 0));
+ UINT UsedMemory=GetUsedMemory() >> 10;
+ UINT m1=UsedMemory >> 10;