From 231934fafd3a2b518da229afbeff4e9adedb9461 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Wed, 14 Jun 2006 18:36:20 +0000 Subject: [PATCH] Einstein@Home-specific change. svn path=/trunk/boinc/; revision=10346 --- sched/sched_locality.C | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sched/sched_locality.C b/sched/sched_locality.C index 2f8637a221..f989314283 100644 --- a/sched/sched_locality.C +++ b/sched/sched_locality.C @@ -927,7 +927,15 @@ void send_work_locality( // here, put a list of patterns of ALL files that are not needed anymore // and should simply be deleted as soon as possible. // - bool useful = strncmp("H1_", fname, 3) && strncmp("l1_", fname, 3) && strncmp("w1_", fname, 3); + bool useful = strlen(fname) > 10 || + ( + strncmp("H1_", fname, 3) && + strncmp("h1_", fname, 3) && + strncmp("w1_", fname, 3) && + strncmp("W1_", fname, 3) && + strncmp("l1_", fname, 3) && + strncmp("L1_", fname, 3) + ); // here, put a list of patterns of ALL files that are still needed to be // sticky, but are not 'data' files for locality scheduling purposes, eg they