This commit is contained in:
minjaesong
2024-09-22 22:03:33 +09:00
parent 8784b7f35c
commit 41485df6b3
2 changed files with 5 additions and 2 deletions

View File

@@ -65,6 +65,9 @@ function startNewInstance() {
// initial kickstart // initial kickstart
graphics.setBackground(34,51,68)
println("== h y v e ============================================== Hypervisor for tsvm ==")
startNewInstance() startNewInstance()
while (parallel.isRunning(runner)) { while (parallel.isRunning(runner)) {

View File

@@ -16,7 +16,7 @@ import java.net.URL
* Note that there is no double-slash after the protocol (or scheme) * Note that there is no double-slash after the protocol (or scheme)
* *
* @param artificialDelayBlockSize How many bytes should be retrieved in a single block-read * @param artificialDelayBlockSize How many bytes should be retrieved in a single block-read
* @param artificialDelayWaitTime Delay in milliseconds between the block-reads. Put non-negative value to NOT introduce a delay. * @param artificialDelayWaitTime Delay in milliseconds between the block-reads. Put positive value in milliseconds to add a delay, zero or negative value to NOT add one.
* *
* Created by minjaesong on 2022-09-22. * Created by minjaesong on 2022-09-22.
*/ */
@@ -149,7 +149,7 @@ class HttpModem(private val vm: VM, private val artificialDelayBlockSize: Int =
bufferedOut.write(data, 0, count) bufferedOut.write(data, 0, count)
} }
if (artificialDelayWaitTime >= 0) { if (artificialDelayWaitTime > 0) {
try { try {
Thread.sleep(artificialDelayWaitTime.toLong()) Thread.sleep(artificialDelayWaitTime.toLong())
} }