summaryrefslogtreecommitdiff
path: root/opendc
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-05-06 14:55:18 +0200
committerGeorgios Andreadis <info@gandreadis.com>2020-05-06 14:55:18 +0200
commitb157ed2791917dd512fd356a573f611ab4de24e9 (patch)
treeda7ece74fea9e3924a7b3240dbde9dd48c5f8c18 /opendc
parentfc64a8e40a982419b95e6ab390e47f5377f077b7 (diff)
Switch params and take logarithm
Diffstat (limited to 'opendc')
-rw-r--r--opendc/opendc-experiments-sc20/src/main/kotlin/com/atlarge/opendc/experiments/sc20/Sc20Experiment.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/opendc/opendc-experiments-sc20/src/main/kotlin/com/atlarge/opendc/experiments/sc20/Sc20Experiment.kt b/opendc/opendc-experiments-sc20/src/main/kotlin/com/atlarge/opendc/experiments/sc20/Sc20Experiment.kt
index ef54f19c..b1964197 100644
--- a/opendc/opendc-experiments-sc20/src/main/kotlin/com/atlarge/opendc/experiments/sc20/Sc20Experiment.kt
+++ b/opendc/opendc-experiments-sc20/src/main/kotlin/com/atlarge/opendc/experiments/sc20/Sc20Experiment.kt
@@ -69,6 +69,7 @@ import java.io.File
import java.io.FileReader
import java.util.ServiceLoader
import java.util.TreeSet
+import kotlin.math.ln
import kotlin.math.max
import kotlin.random.Random
@@ -143,7 +144,7 @@ fun createFaultInjector(domain: Domain, random: Random, failureInterval: Int): F
// GRID'5000
return CorrelatedFaultInjector(
domain,
- iatScale = -1.39, iatShape = failureInterval.toDouble(), // Hours
+ iatScale = ln(failureInterval.toDouble()), iatShape = 1.03, // Hours
sizeScale = 1.88, sizeShape = 1.25,
dScale = 9.51, dShape = 3.21, // Minutes
random = random