projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-app-statistics: processes: fix graph visibility
[project/luci.git]
/
applications
/
luci-app-statistics
/
luasrc
/
statistics
/
rrdtool
/
definitions
/
processes.lua
diff --git
a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/processes.lua
b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/processes.lua
index
323c3c2
..
62d0545
100644
(file)
--- a/
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/processes.lua
+++ b/
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/processes.lua
@@
-5,8
+5,8
@@
module("luci.statistics.rrdtool.definitions.processes", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
function rrdargs( graph, plugin, plugin_instance, dtype )
+ if plugin_instance == "" then
return {
return {
- {
title = "%H: Processes",
vlabel = "Processes/s",
data = {
title = "%H: Processes",
vlabel = "Processes/s",
data = {
@@
-26,8
+26,9
@@
function rrdargs( graph, plugin, plugin_instance, dtype )
ps_state_zombies = { color = "ff0000", title = "Zombies" }
}
}
ps_state_zombies = { color = "ff0000", title = "Zombies" }
}
}
- },
-
+ }
+ else
+ return {
{
title = "%H: CPU time used by %pi",
vlabel = "Jiffies",
{
title = "%H: CPU time used by %pi",
vlabel = "Jiffies",
@@
-112,4
+113,5
@@
function rrdargs( graph, plugin, plugin_instance, dtype )
}
}
}
}
}
}
+ end
end
end