hcache icon indicating copy to clipboard operation
hcache copied to clipboard

使用hcache -top 10时报错,could not open '/proc/22621/maps'

Open monkey6 opened this issue 2 years ago • 1 comments

使用hcache -top 10命令时,报错,报错如下: could not open '/proc/22621/maps' for read: open /proc/22621/maps: no such file or directory

monkey6 avatar Aug 04 '22 05:08 monkey6

感觉很久没维护了,可以自己手动改下源码 main.go的getPidMaps log.Fatalf("could not open '%s' for read: %v", fname, err) 改成 log.Printf("could not open '%s' for read: %v", fname, err) return nil 然后调用的地方判断下就好了 maps := getPidMaps(pidFlag) if maps != nil { files = append(files, maps...) }

neland avatar Nov 02 '23 02:11 neland