data-collector
Steve L. Nyemba 6 years ago
parent 8af1094563
commit 9fc838e28d

@ -87,7 +87,7 @@ class Apps(SmartTop) :
if 'filter' in args : if 'filter' in args :
pattern = "|".join(args['filter']) pattern = "|".join(args['filter'])
i = df.cmd.str.contains(pattern) i = df.cmd.str.contains(pattern)
r = df[i] r = pd.DataFrame(df[i])
ii= (1 + np.array(i)*-1) == 1 ii= (1 + np.array(i)*-1) == 1
other = pd.DataFrame(df[ii].sum()).T other = pd.DataFrame(df[ii].sum()).T
other.user = other.name = other.status = other.cmd = other.args = 'other' other.user = other.name = other.status = other.cmd = other.args = 'other'

Loading…
Cancel
Save