Skip to content
Snippets Groups Projects
Commit eb7130d4 authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

fix uptime ttl too high

parent c02cdb0f
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,6 @@ class NodeHandler(RpcHandler):
'h' : self._tag_map_direct('get_name', 24*3600),
# one hour
# one minute
'uptime' : self._tag_map_direct('get_uptime', 60),
'memfree' : self._tag_map_direct('get_mem_free', 60),
'memused' : self._tag_map_direct('get_mem_used', 60),
'sto' : ( lambda o: hasattr(o, 'storage'),
......@@ -94,6 +93,7 @@ class NodeHandler(RpcHandler):
getattr(o, 'storage')().pool_list()),
60),
# 5 seconds
'uptime' : self._tag_map_direct('get_uptime', 5),
'cpuuse' : self._tag_map_direct('get_cpu_usage', 5),
'load' : self._tag_map_direct('get_loadavg', 5),
'nvm' : self._tag_map_counter('vm_list', 5),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment