V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  wangjiacai  ›  全部回复第 1 页 / 共 1 页
回复总数  1
305 天前
回复了 Eaglemask 创建的主题 程序员 150 小费,升级下脚本
http://yunloc.com/1038.html
这个页面里面的源码,对 load 的大小判断有问题,类似 144 行的 elif [[ $load <$check ]],shell 里面小于符号有特殊作用,这样没法判断 load 是否超过阈值。

页面里面给了 github 开源地址,
https://github.com/jiuqi9997/autouam
可以看到下面这笔 commit 专门修正了判断逻辑。所以你用 github 上最新的源码试试。不行就去提 issue ;)
https://github.com/jiuqi9997/autouam/commit/711d9fb223eea74b219ccf924d154ed91793063a
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1803 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 00:49 · PVG 08:49 · LAX 17:49 · JFK 20:49
Developed with CodeLauncher
♥ Do have faith in what you're doing.