Use OS.TEMP_DIR instead of manually requesting it
This commit is contained in:
parent
06be3bee28
commit
53a3ba0309
|
@ -496,7 +496,7 @@ open class Configuration {
|
||||||
else {
|
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\"")
|
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 -> {
|
OS.isLinux -> {
|
||||||
|
@ -504,7 +504,7 @@ open class Configuration {
|
||||||
File("/dev/shm/")
|
File("/dev/shm/")
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
File(System.getProperty("java.io.tmpdir"))
|
OS.TEMP_DIR
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user