Skip to content

Commit 26dfd05

Browse files
committed
Merge branch 'hotfix-2.9.5'
Resolved issue with cache_memory introduced in 2.9.4
2 parents 68b91e0 + a6e6aaf commit 26dfd05

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ RUN apk --no-cache add ca-certificates
1212
COPY --from=builder /go/bin/imgd /imgd
1313
COPY config.example.gcfg /config.gcfg
1414
ENTRYPOINT ./imgd
15-
LABEL Name=imgd Version=2.9.4
15+
LABEL Name=imgd Version=2.9.5
1616
EXPOSE 8000

cache_memory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const (
1717

1818
// Based off those, calculate the maximum number of skins we'll store
1919
// in memory.
20-
skinCount = skinSize / cacheSize
20+
skinCount = cacheSize / skinSize
2121
)
2222

2323
// Cache object that stores skins in memory.

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const (
1616
MinWidth = uint(8)
1717
MaxWidth = uint(300)
1818

19-
ImgdVersion = "2.9.4"
19+
ImgdVersion = "2.9.5"
2020
)
2121

2222
var (

0 commit comments

Comments
 (0)