aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/phenax/utils/program.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/phenax/utils/program.kt')
-rw-r--r--src/main/kotlin/phenax/utils/program.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/phenax/utils/program.kt b/src/main/kotlin/phenax/utils/program.kt
index fdb6197..821324a 100644
--- a/src/main/kotlin/phenax/utils/program.kt
+++ b/src/main/kotlin/phenax/utils/program.kt
@@ -11,11 +11,11 @@ import org.openrndr.extra.olive.oliveProgram as oliveProgramOriginal
fun Number.seconds(): Number = this
-fun recordDuration(millis: Number) {
- System.setProperty("phenax.record.recordDuration", millis.toDouble().toString())
+fun recordDuration(seconds: Number) {
+ System.setProperty("phenax.record.recordDuration", seconds.toDouble().toString())
}
-fun recordDuration(): Double = System.getProperty("phenax.record.recordDuration")?.toDoubleOrNull() ?: 5000.0
+fun recordDuration(): Double = System.getProperty("phenax.record.recordDuration")?.toDoubleOrNull() ?: 5.0
val recordingEnabled: Boolean by lazy { System.getenv("PHENAX_RECORD") != null }
val screenshotEnabled: Boolean by lazy { System.getenv("PHENAX_SCREENSHOT") != null }