diff --git a/src/cmd/.gitignore b/src/cmd/.gitignore index 32fa388..0253bbf 100644 --- a/src/cmd/.gitignore +++ b/src/cmd/.gitignore @@ -11,6 +11,7 @@ comm cp dd df +diskspeed du echo ed diff --git a/src/cmd/Makefile b/src/cmd/Makefile index e61f57c..ccb63fe 100644 --- a/src/cmd/Makefile +++ b/src/cmd/Makefile @@ -33,11 +33,11 @@ SCRIPT = false nohup true #lorder mkdep # C programs that live in the current directory and do not need # explicit make lines. # -STD = basename cal cat cb chgrp chmod cmp col comm cp dd du \ - echo ed fgrep file grep head hostid join kill last ln \ - mesg mkdir mv nice od pagesize pr printenv pwd rev rm rmail rmdir \ - size sleep sort split sum sync tail tar tee time touch tr \ - tsort tty uniq w wc whereis who diskspeed +STD = basename cal cat cb chgrp chmod cmp col comm cp dd \ + diskspeed du echo ed fgrep file grep head hostid join \ + kill last ln mesg mkdir mv nice od pagesize pr printenv \ + pwd rev rm rmail rmdir size sleep sort split sum sync \ + tail tar tee time touch tr tsort tty uniq w wc whereis who # C programs that live in the current directory and need explicit make lines. # diff --git a/src/cmd/diskspeed.c b/src/cmd/diskspeed.c index d02d0a6..7730f22 100644 --- a/src/cmd/diskspeed.c +++ b/src/cmd/diskspeed.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #define MAX_BLOCK_SZ 64 /* kbytes */ @@ -153,6 +152,9 @@ int main(int argc, char **argv) * Write data to file. */ sync(); + usleep(200000); + sync(); + usleep(200000); t0 = current_msec(); nbytes = blocksize_kbytes * 1024; for (n=0; n