rrd: simplify code

This commit is contained in:
Dietmar Maurer
2020-05-23 15:37:17 +02:00
parent a4a3f7ca5e
commit 803ab12ad4
3 changed files with 27 additions and 84 deletions

View File

@ -27,7 +27,7 @@ fn get_node_stats(
_param: Value,
) -> Result<Value, Error> {
crate::rrd::extract_data_list(
crate::rrd::extract_data(
"host",
&["cpu", "iowait", "memtotal", "memused"],
timeframe,