]> git.pld-linux.org Git - packages/dspam.git/blame - dspam-speedup.patch
- Obsoletes for dropped -driver-db
[packages/dspam.git] / dspam-speedup.patch
CommitLineData
207d4f1c
ER
1--- dspam-3.6.5/src/tools/dspam_clean.c~ 2006-01-22 00:56:31.000000000 +0200
2+++ dspam-3.6.5/src/tools/dspam_clean.c 2006-05-08 00:46:32.113812576 +0300
3@@ -306,6 +306,7 @@
4 struct nt *del;
5 struct nt_node *node;
6 int delta;
7+ time_t t = time(NULL);
8
9 del = nt_create(NT_CHAR);
10 if (del == NULL)
11@@ -322,7 +323,7 @@
12 printf ("Signature: %s\n Created: %s\n", ss->signature,
13 ctime (&ss->created_on));
14 #endif
15- delta = (((time (NULL) - ss->created_on) / 60) / 60) / 24;
16+ delta = (((t - ss->created_on) / 60) / 60) / 24;
17 if (age == 0 || delta > age)
18 {
19 #ifdef DEBUG
20@@ -350,6 +351,7 @@
21 struct _ds_spam_stat s;
22 ds_diction_t del;
23 int delta;
24+ time_t t = time(NULL);
25
26 #ifdef DEBUG
27 printf("Processing probabilities; age: %d\n", age);
28@@ -366,7 +368,7 @@
29 s.probability = 0.00000;
30 _ds_calc_stat(CTX, NULL, &s, DTT_DEFAULT, NULL);
31 if (s.probability >= 0.3500 && s.probability <= 0.6500) {
32- delta = (((time (NULL) - sr->last_hit) / 60) / 60) / 24;
33+ delta = (((t - sr->last_hit) / 60) / 60) / 24;
34 if (age == 0 || delta > age)
35 ds_diction_touch(del, sr->token, "", 0);
36 }
This page took 0.052915 seconds and 4 git commands to generate.