immortalwrt/package
Chuck 3d194b80c0
autocore: optimize the performance of obtaining CPU usage
Preformance Test (on NanoPi R2s, repeat 1000 times):

old command

cpu_usage=$(expr 100 - $(cat /tmp/top_tmp | grep 'CPU:' | awk -F '%' '{print$4}' | awk -F ' ' '{print$2}'))

```
real    0m 14.25s
user    0m 7.96s
sys     0m 20.33s
```

new command

cpu_usage=$(cat /tmp/top_tmp | awk '/^CPU/ { printf("%d%%", 100 - $8) }')

```
real    0m 6.91s
user    0m 4.29s
sys     0m 6.06s
```

Signed-off-by: Chuck <fanck0605@qq.com>
[adjusted for our own tree]
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-20 00:21:43 +08:00
..
base-files include/version: set default distribution name to ImmortalWrt 2021-02-18 19:07:14 +08:00
boot sunxi: Nanopi R1S H5: add missing device package 2021-02-09 12:40:22 +08:00
ctcgfw rtl8821cu: fix build on x86 platform 2021-02-19 23:40:20 +08:00
devel strace: update package to v5.10 2021-01-31 22:09:39 +08:00
firmware treewide: unify OpenWrt hosted source via @OPENWRT 2021-02-08 12:11:32 +08:00
kernel kernel: drop outdated version detection 2021-02-18 02:24:17 +08:00
lean autocore: optimize the performance of obtaining CPU usage 2021-02-20 00:21:43 +08:00
libs Revert "package: libs: ncurses/readline use PKG_ABI_VERSION" 2021-02-19 03:28:41 +08:00
lienol luci-app-passwall: sync with upstream source 2021-02-19 17:25:46 +08:00
network build: reorder more BuildPackages lines to deal with ABI_VERSION 2021-02-16 19:30:48 +08:00
ntlf9t AdGuardHome: remove upstreamed package 2021-01-31 13:24:17 +08:00
system build: reorder more BuildPackages lines to deal with ABI_VERSION 2021-02-16 19:30:48 +08:00
utils build: reorder more BuildPackages lines to deal with ABI_VERSION 2021-02-16 19:30:48 +08:00
Makefile build: store SourceDateEpoch in manifest 2020-09-01 17:31:29 +08:00