Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb6c2eb7

Browse files
committed
Add artificial delay in DTMD
1 parent92be8e3 commitb6c2eb7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎contrib/multimaster/dtmd/src/server.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,12 @@ static bool stream_flush(stream_t stream) {
171171
/* nothing to do */
172172
return true;
173173
}
174-
174+
{
175+
structtimespects;
176+
ts.tv_sec=0;
177+
ts.tv_nsec=10000;/* 10usec */
178+
nanosleep(&ts,NULL);
179+
}
175180
char*cursor=stream->output.data;
176181
while (tosend>0) {
177182
/* repeat sending until we send everything */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp