diff options
Diffstat (limited to 'fsbm.c')
-rw-r--r-- | fsbm.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -30,9 +30,6 @@ char *netdev_path = "/proc/net/dev"; struct iface *interfaces = NULL; size_t no_iface = 0; -void endHandler(int signum) { - q = true; -} void print_bps(double bytesPerSecond) { const char* prefixes[] = { "", "k", "M", "G", "T", "P", "E", "Z", "Y" }; @@ -209,12 +206,9 @@ int main(int argc, char **argv) { exit(EXIT_FAILURE); } - // Catch SIGINT - signal(SIGINT, endHandler); - // populate first. print_stats(); - while (!q) { + while (1) { print_stats(); printf("\n"); fflush(stdout); |