Skip to content
Snippets Groups Projects
Commit d8128d02 authored by Dmitri Goutnik's avatar Dmitri Goutnik
Browse files

security/honeytrap: Unbreak on i386

services/docker/docker.go:405:23: cannot use 16348065792 (untyped int constant) as int value in map literal (overflows)

Make constant literal int64 on all archs.

Reported by:	fallout
Approved by:	portmgr (blanket, build fix)
parent f71ecd52
No related branches found
No related tags found
No related merge requests found
--- services/docker/docker.go.orig 2022-07-17 19:10:19 UTC
+++ services/docker/docker.go
@@ -402,7 +402,7 @@ var infoResp = map[string]interface{}{
"Mirrors": []interface{}{},
},
"NCPU": 8,
- "MemTotal": 16348065792,
+ "MemTotal": int64(16348065792),
"GenericResources": nil,
"DockerRootDir": "/var/lib/docker",
"HttpProxy": "",
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment