...
This commit is contained in:
@@ -88,7 +88,12 @@ fun getLlamaBinPath(): String {
|
||||
}
|
||||
// Windows NUC
|
||||
os.contains("win") -> {
|
||||
"$basePath/win-x64-n/llama-server.exe"
|
||||
if (KisSession.tradeConfig.isLowPerformanceMonitoring) {
|
||||
"$basePath/win-x64/llama-server.exe"
|
||||
}
|
||||
else {
|
||||
"$basePath/win-x64-n/llama-server.exe"
|
||||
}
|
||||
}
|
||||
else -> "$basePath/llama-server"
|
||||
}
|
||||
@@ -111,6 +116,7 @@ private var isAppStarted = false
|
||||
fun main() = application {
|
||||
if (!isAppStarted) {
|
||||
initLogger(DETAILLOG)
|
||||
KisSession.tradeConfig = KisSession.loadTradeConfig()
|
||||
try {
|
||||
val (port1, port2) = PortFinder.findAvailablePortPair(18080, false)
|
||||
if (port1 > 18000 && port2 > port1) {
|
||||
|
||||
Reference in New Issue
Block a user