Skip to content

Commit

Permalink
Added traffic to Statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
stebifan committed Jun 7, 2015
1 parent b53a94e commit 64dee31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def add(node, statistics, target, source, f=lambda d: d):
add(node, stats, 'memory_usage', ['memory'],
lambda d: 1 - d['free'] / d['total'])
add(node, stats, 'rootfs_usage', ['rootfs_usage'])
add(node, stats, 'traffic', ['traffic'])


def import_mesh_ifs_vis_data(nodes, vis_data):
Expand Down

0 comments on commit 64dee31

Please sign in to comment.