Lost of changes

This commit is contained in:
Michiel Broek
2004-01-25 10:57:35 +00:00
parent 1382701bd8
commit 5a0e317f23
41 changed files with 762 additions and 604 deletions

View File

@@ -4,7 +4,7 @@
* Purpose ...............: Creates allfiles listings
*
*****************************************************************************
* Copyright (C) 1997-2002
* Copyright (C) 1997-2004
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@@ -350,7 +350,7 @@ void Masterlist()
*/
x++;
if (CFG.slow_util && do_quiet && ((x % 3) == 0))
usleep(1);
msleep(1);
AllFiles++;
AllAreaFiles++;
AllAreaBytes += file.Size;

View File

@@ -4,7 +4,7 @@
* Purpose ...............: Change BBS status
*
*****************************************************************************
* Copyright (C) 1997-2002
* Copyright (C) 1997-2004
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@@ -153,7 +153,6 @@ int main(int argc, char **argv)
pw = getpwuid(getuid());
InitClient(pw->pw_name, (char *)"mbstat", CFG.location, CFG.logfile,
CFG.util_loglevel, CFG.error_log, CFG.mgrlog, CFG.debuglog);
usleep(1);
Syslog(' ', " ");
Syslog(' ', "MBSTAT v%s", VERSION);
@@ -186,7 +185,6 @@ int main(int argc, char **argv)
if (!(do_open || do_close || do_wait || do_sema))
Help();
usleep(1);
die(MBERR_OK);
return 0;
}

View File

@@ -4,7 +4,7 @@
* Purpose ...............: User Pack Util
*
*****************************************************************************
* Copyright (C) 1997-2003
* Copyright (C) 1997-2004
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@@ -255,7 +255,7 @@ void UserPack(int days, int level, int pack)
fwrite(&usr, sizeof(usr), 1, fout);
memset(&usr, 0, sizeof(usr));
if (CFG.slow_util && do_quiet)
usleep(1);
msleep(1);
Nopper();
}
fclose(fin);
@@ -300,7 +300,7 @@ void UserPack(int days, int level, int pack)
fwrite(&usr, sizeof(usr), 1, fout);
}
if (CFG.slow_util && do_quiet)
usleep(1);
msleep(1);
}
Syslog('+', "Marked %d users to delete", delete);
}
@@ -314,7 +314,7 @@ void UserPack(int days, int level, int pack)
fseek(fout, sizeof(usrhdr), SEEK_SET);
while (fread(&usr, sizeof(usr), 1, fout) == 1) {
if (CFG.slow_util && do_quiet)
usleep(1);
msleep(1);
Nopper();
if (usr.Deleted) {

View File

@@ -4,7 +4,7 @@
* Purpose ...............: Offline Reader
*
*****************************************************************************
* Copyright (C) 1997-2003
* Copyright (C) 1997-2004
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@@ -2693,7 +2693,7 @@ unsigned long QWK_PackArea(unsigned long ulLast, long Area)
fwrite(&Qwk, sizeof(Qwk), 1, fdm);
fseek(fdm, 0L, SEEK_END);
if ((Total % 16L) == 0L)
usleep(1);
msleep(1);
}
if (BarWidth != (unsigned short)((Total * 61L) / TotalPack)) {
@@ -2937,7 +2937,7 @@ unsigned long ASCII_PackArea(unsigned long ulLast, long Area)
}
if ((Total % 16L) == 0L)
usleep(1);
msleep(1);
if (BarWidth != (unsigned short)((Total * 61L) / TotalPack)) {
BarWidth = (unsigned short)((Total * 61L) / TotalPack);