mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-19 16:14:39 +00:00
fix (pi): simpler path for low power devices
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"text/template"
|
||||
@@ -453,7 +454,7 @@ func ServeBundle() func(*App, http.ResponseWriter, *http.Request) {
|
||||
}
|
||||
|
||||
quality := 11
|
||||
if isDebug {
|
||||
if isDebug || runtime.NumCPU() <= 4 {
|
||||
quality = 8
|
||||
}
|
||||
chunks, chunksBr, chunksGzip, etags := buildChunks(quality)
|
||||
|
||||
Reference in New Issue
Block a user