#include "lib/events/events.h"
#include "libcli/composite/composite.h"
#include "libcli/smb_composite/smb_composite.h"
+#include "torture/raw/proto.h"
#define BASEDIR "\\testoffline"
latencies[OP_LOADFILE],
worst_latencies[OP_LOADFILE]);
fflush(stdout);
- event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state);
+ tevent_add_timer(ev, state, timeval_current_ofs(1, 0), report_rate, state);
for (i=0;i<OP_ENDOFLIST;i++) {
if (latencies[i] > worst_latencies[i]) {
tv = timeval_current();
if (progress) {
- event_add_timed(torture->ev, state, timeval_current_ofs(1, 0), report_rate, state);
+ tevent_add_timer(torture->ev, state, timeval_current_ofs(1, 0), report_rate, state);
}
printf("Running for %d seconds\n", timelimit);
while (timeval_elapsed(&tv) < timelimit) {
- event_loop_once(torture->ev);
+ tevent_loop_once(torture->ev);
if (test_failed) {
DEBUG(0,("test failed\n"));
while (state[i].loadfile ||
state[i].savefile ||
state[i].req) {
- event_loop_once(torture->ev);
+ tevent_loop_once(torture->ev);
}
}