diff --git a/src/monitor.py b/src/monitor.py index b6b6287..1dbf0ab 100755 --- a/src/monitor.py +++ b/src/monitor.py @@ -87,7 +87,7 @@ class Apps(SmartTop) : if 'filter' in args : pattern = "|".join(args['filter']) i = df.cmd.str.contains(pattern) - r = df[i] + r = pd.DataFrame(df[i]) ii= (1 + np.array(i)*-1) == 1 other = pd.DataFrame(df[ii].sum()).T other.user = other.name = other.status = other.cmd = other.args = 'other'