File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,12 @@ def connstat_regurgitate():
117117 for line in open ('/proc/net/stats_tcp' ):
118118 line_str_list = line .strip ().split (',' )
119119
120- # Skip filtered out lines; not the headings(first) line
120+ # Omit headings(first) line for parsable output
121+ if args .parsable and headings_line :
122+ headings_line = False
123+ continue
124+
125+ # Skip filtered out lines; doesn't apply to headings
121126 if not headings_line and (loopback_skip (line_str_list )
122127 or filter_skip (line_str_list )):
123128 continue
@@ -204,8 +209,10 @@ if args.parsable:
204209
205210while True :
206211 if args .TYPE is 'u' :
212+ print ("=" , end = " " )
207213 print (time .time ())
208214 elif args .TYPE is 'd' :
215+ print ("=" , end = " " )
209216 os .system ("date" )
210217
211218 connstat_regurgitate ()
You can’t perform that action at this time.
0 commit comments