flowtop: Store basename of cmdline in struct flow_entry
commit98ea1cffdab73c69d69bf0f9a464bd0ef6e16dd3
authorTobias Klauser <tklauser@distanz.ch>
Fri, 23 Oct 2015 12:39:48 +0000 (23 14:39 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 23 Oct 2015 12:44:06 +0000 (23 14:44 +0200)
tree57842cf21ca46cda3307edd947db58f2814aa915
parentfea42c5091f45a8e6189614be50db88b029df7fc
flowtop: Store basename of cmdline in struct flow_entry

The cmdline entry of struct flow_entry is only used to display the
process name using basename() in presenter_screen_do_line(). Instead of
calling basename() everytime just call it once when we read the cmdline
proc entry and store the basename in struct flow_entry. Also rename the
struct member accordingly.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
flowtop.c