Added function to print network interface statistics.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-13 15:27:35 +01:00
parent 68bd5af105
commit 766ab8ee21
5 changed files with 170 additions and 3 deletions

View File

@@ -889,6 +889,8 @@ int common_info_cmd(DBusMessageIter * args)
else
fprintf(out, "\n");
print_iface_stats(device, since, out);
if (hostname != NULL && hostname[0] != 0)
fprintf(out, "\tHostname: %s\n", hostname);