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);
|
status);
|
||||||
} else if (!strcmp(params[0],"Flush")) {
|
} else if (!strcmp(params[0],"Flush")) {
|
||||||
nb_flush(ival(params[1]), status);
|
nb_flush(ival(params[1]), status);
|
||||||
|
} else if (!strcmp(params[0],"Sleep")) {
|
||||||
|
nb_sleep(ival(params[1]), status);
|
||||||
} else {
|
} else {
|
||||||
printf("[%d] Unknown operation %s\n", nbench_line_count, params[0]);
|
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);
|
check_status("Flush", status, ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void nb_sleep(int usec, NTSTATUS status)
|
||||||
|
{
|
||||||
|
(void)status;
|
||||||
|
sys_usleep(usec);
|
||||||
|
}
|
||||||
|
|
||||||
void nb_deltree(const char *dname)
|
void nb_deltree(const char *dname)
|
||||||
{
|
{
|
||||||
int total_deleted;
|
int total_deleted;
|
||||||
|
Loading…
Reference in New Issue
Block a user