X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FDirMonitor.c;h=2f11833a800479a96f6c0bff6edbf34a03efc26d;hp=47253548ab1f5ea769f91dd492f6306b10698c09;hb=86daf7e40ebb0b24397b67e1a272100bcccd539a;hpb=441dd1e480e625b9e8943261b706d0018c5f0faa diff --git a/sources/DirMonitor.c b/sources/DirMonitor.c index 4725354..2f11833 100644 --- a/sources/DirMonitor.c +++ b/sources/DirMonitor.c @@ -25,7 +25,7 @@ * * Author: S. Piccardi Jan. 2003 * - * $Id: DirMonitor.c,v 1.3 2003/01/06 16:44:20 piccardi Exp $ + * $Id: DirMonitor.c,v 1.4 2003/01/10 09:28:49 piccardi Exp $ * *****************************************************************************/ #include @@ -137,10 +137,10 @@ int ComputeValues(struct dirent * direntry) if (S_ISREG(data.st_mode)) shmptr->tot_regular++; if (S_ISFIFO(data.st_mode)) shmptr->tot_fifo++; if (S_ISLNK(data.st_mode)) shmptr->tot_link++; - if (S_ISDIR(data.st_mode)) shmptr->tot_dir; - if (S_ISBLK(data.st_mode)) shmptr->tot_block; - if (S_ISCHR(data.st_mode)) shmptr->tot_char; - if (S_ISSOCK(data.st_mode)) shmptr->tot_sock; + if (S_ISDIR(data.st_mode)) shmptr->tot_dir++; + if (S_ISBLK(data.st_mode)) shmptr->tot_block++; + if (S_ISCHR(data.st_mode)) shmptr->tot_char++; + if (S_ISSOCK(data.st_mode)) shmptr->tot_sock++; return 0; } /*