X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=backup%2Fwritebuffer.c;h=259f6bb5c8f82338c5b5599e81eca7a45f5cd025;hp=c4fa9e72e45081f5d320c6b5fb1242c933f39240;hb=ef74fefeba9761cd21b542976e3853ab0f4ce1a5;hpb=49b87b31128ab8bf32998d60eeacfe397a5a4b19 diff --git a/backup/writebuffer.c b/backup/writebuffer.c index c4fa9e7..259f6bb 100644 --- a/backup/writebuffer.c +++ b/backup/writebuffer.c @@ -1,4 +1,23 @@ -/**/ +/* + * writebuffer.c + * + * Copyright (C) 1997,1998 Ian Jackson + * + * This is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2, + * or (at your option) any later version. + * + * This is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this file; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + */ #include #include @@ -7,7 +26,8 @@ #include #include -#define BUFFER 16*1024*1024 +/* was 16MB -- PMM */ +#define BUFFER 6*1024*1024 #define WAITFILL ((BUFFER*3)/4) static inline int min(int a, int b) { return a<=b ? a : b; }