luci-base: tweak busybox top regex to accept 'm' in large VSZ
authorHannu Nyman <hannu.nyman@iki.fi>
Sat, 19 Sep 2020 05:46:16 +0000 (08:46 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Sat, 19 Sep 2020 05:46:16 +0000 (08:46 +0300)
commit4f2ecd88fd02c1279041f45ccd758184b153c875
treefda183967d2f51b3f3ab6142a74702c2077b8e96
parent509bf29cc9ae96350547946b207c0c0b5f61917f
luci-base: tweak busybox top regex to accept 'm' in large VSZ

Tweak the lua regex string for process list, so that processes
with extremely large memory sizes (over 100 MB) are matched.
For those large processes busybox top shows a MB value like '234m'
instead of a normal kB value like 234000.

Fixes #4425

Reference to https://github.com/openwrt/luci/issues/4425#issuecomment-694073479

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
modules/luci-base/luasrc/sys.lua