Skip to content

Commit aeabd59

Browse files
committed
Looking for issues with buffering.
1 parent 3a4e633 commit aeabd59

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/kotlin/docker/DockerProxy.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ abstract class DockerProxy(configuration: Configuration) : MigrationStrategy(con
9797
while (true) {
9898
// TODO: I believe this could be optimised
9999
val process = ProcessBuilder()
100-
.command("docker", "stats", "--no-trunc", "--format", "{{ json . }}")
100+
.command("docker", "stats", "--no-stream", "--no-trunc", "--format", "{{ json . }}")
101101
.redirectErrorStream(true)
102102
.start()
103103
val reader = process.inputStream.bufferedReader()
@@ -118,6 +118,7 @@ abstract class DockerProxy(configuration: Configuration) : MigrationStrategy(con
118118
updated = System.currentTimeMillis()
119119
}
120120
}
121+
Thread.sleep(5000)
121122
}
122123

123124

0 commit comments

Comments
 (0)