18 lines
531 B
Text
18 lines
531 B
Text
$NetBSD: patch-ac,v 1.2 2005/06/17 15:06:16 hira Exp $
|
|
|
|
--- sapserver.cpp.orig Tue Jul 27 18:13:01 2004
|
|
+++ sapserver.cpp Tue Jul 27 18:14:06 2004
|
|
@@ -174,9 +174,13 @@
|
|
if(config->GetDotMode())
|
|
fprintf(stdout,".");
|
|
|
|
/* Wait for next sending */
|
|
+#ifdef __NetBSD__
|
|
+ sleep(1 + (config->GetDelay()/config->Programs.size()));
|
|
+#else
|
|
usleep(config->GetDelay()*1000000/config->Programs.size());
|
|
+#endif
|
|
}
|
|
fflush(stdout);
|
|
}
|
|
}
|