1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r3040: Add sleeps between operations to nbench. Submitted by aliguori@us.ibm.com.

This commit is contained in:
Jim McDonough 2004-10-18 13:58:41 +00:00 committed by Gerald (Jerry) Carter
parent a256e71029
commit b1bbf0a431
2 changed files with 8 additions and 0 deletions

View File

@ -139,6 +139,8 @@ again:
status);
} else if (!strcmp(params[0],"Flush")) {
nb_flush(ival(params[1]), status);
} else if (!strcmp(params[0],"Sleep")) {
nb_sleep(ival(params[1]), status);
} else {
printf("[%d] Unknown operation %s\n", nbench_line_count, params[0]);
}

View File

@ -618,6 +618,12 @@ void nb_flush(int fnum, NTSTATUS status)
check_status("Flush", status, ret);
}
void nb_sleep(int usec, NTSTATUS status)
{
(void)status;
sys_usleep(usec);
}
void nb_deltree(const char *dname)
{
int total_deleted;