Use OS.TEMP_DIR instead of manually requesting it

This commit is contained in:
Robinson 2022-03-08 23:25:55 +01:00
parent 06be3bee28
commit 53a3ba0309
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C

View File

@ -496,7 +496,7 @@ open class Configuration {
else {
logger.info("It is recommended to create a RAM drive for best performance. For example\n" + "\$ diskutil erasevolume HFS+ \"DevShm\" `hdiutil attach -nomount ram://\$((2048 * 2048))`\n" + "\t After this, set config.aeronLogDirectory = \"/Volumes/DevShm\"")
File(System.getProperty("java.io.tmpdir"))
OS.TEMP_DIR
}
}
OS.isLinux -> {
@ -504,7 +504,7 @@ open class Configuration {
File("/dev/shm/")
}
else -> {
File(System.getProperty("java.io.tmpdir"))
OS.TEMP_DIR
}
}
}