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:
parent
a256e71029
commit
b1bbf0a431
@ -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]);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user