mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-15 15:36:05 +09:00
commit
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
@@ -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())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user