fix load average and mail output in ion-status
ok pedro@
This commit is contained in:
parent
62999027ad
commit
6c224f3d6b
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-mod_statusbar_ion-statusd_statusd_load_lua,v 1.1 2005/05/28 05:19:00 mjc Exp $
|
||||
--- mod_statusbar/ion-statusd/statusd_load.lua.orig Fri May 27 21:38:31 2005
|
||||
+++ mod_statusbar/ion-statusd/statusd_load.lua Fri May 27 21:38:38 2005
|
||||
@@ -43,7 +43,7 @@ local function get_load_uptime()
|
||||
end
|
||||
local s=f:read('*l')
|
||||
f:close()
|
||||
- local st, en, load=string.find(s, 'load average:%s*(.*)')
|
||||
+ local st, en, load=string.find(s, 'load averages:%s*(.*)')
|
||||
return (load or "")
|
||||
end
|
||||
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-mod_statusbar_ion-statusd_statusd_mail_lua,v 1.1 2005/05/28 05:19:00 mjc Exp $
|
||||
--- mod_statusbar/ion-statusd/statusd_mail.lua.orig Fri May 27 21:27:34 2005
|
||||
+++ mod_statusbar/ion-statusd/statusd_mail.lua Fri May 27 21:27:41 2005
|
||||
@@ -12,7 +12,7 @@
|
||||
local defaults={
|
||||
update_interval=10*1000,
|
||||
retry_interval=60*10*1000,
|
||||
- mbox=os.getenv("MAIL")
|
||||
+ mbox=os.getenv("MAIL") or "/var/mail/" .. os.getenv("USER")
|
||||
}
|
||||
|
||||
local function TR(s, ...)
|
Loading…
Reference in New Issue
Block a user