From 41485df6b3dda36bf3cf73d47fcea835585a52ef Mon Sep 17 00:00:00 2001 From: minjaesong Date: Sun, 22 Sep 2024 22:03:33 +0900 Subject: [PATCH] commit --- assets/disk0/tvdos/hyve.SYS | 3 +++ tsvm_core/src/net/torvald/tsvm/peripheral/HttpModem.kt | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/disk0/tvdos/hyve.SYS b/assets/disk0/tvdos/hyve.SYS index b71eeee..80ed8b0 100644 --- a/assets/disk0/tvdos/hyve.SYS +++ b/assets/disk0/tvdos/hyve.SYS @@ -65,6 +65,9 @@ function startNewInstance() { // initial kickstart +graphics.setBackground(34,51,68) +println("== h y v e ============================================== Hypervisor for tsvm ==") + startNewInstance() while (parallel.isRunning(runner)) { diff --git a/tsvm_core/src/net/torvald/tsvm/peripheral/HttpModem.kt b/tsvm_core/src/net/torvald/tsvm/peripheral/HttpModem.kt index 6034bae..4c8689c 100644 --- a/tsvm_core/src/net/torvald/tsvm/peripheral/HttpModem.kt +++ b/tsvm_core/src/net/torvald/tsvm/peripheral/HttpModem.kt @@ -16,7 +16,7 @@ import java.net.URL * 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 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. */ @@ -149,7 +149,7 @@ class HttpModem(private val vm: VM, private val artificialDelayBlockSize: Int = bufferedOut.write(data, 0, count) } - if (artificialDelayWaitTime >= 0) { + if (artificialDelayWaitTime > 0) { try { Thread.sleep(artificialDelayWaitTime.toLong()) }