ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/examples/network_traffic.c
(Generate patch)

Comparing projects/libstatgrab/examples/network_traffic.c (file contents):
Revision 1.1 by pajs, Sun May 11 17:05:24 2003 UTC vs.
Revision 1.3 by tdb, Sun Aug 24 20:24:09 2003 UTC

# Line 1 | Line 1
1   /*
2   * i-scream central monitoring system
3 < * http://www.i-scream.org.uk
4 < * Copyright (C) 2000-2002 i-scream
3 > * http://www.i-scream.org
4 > * Copyright (C) 2000-2003 i-scream
5   *
6   * This program is free software; you can redistribute it and/or
7   * modify it under the terms of the GNU General Public License
# Line 103 | Line 103 | int main(int argc, char **argv){
103                                          printf("\033[%d;2H%-25s : %5lld", line_number++, "Network Interface Tx", (network_stats->tx / 1024));
104                                          break;
105                                  case 'm':
106 <                                        printf("\033[%d;2H%-25s : %5.2f m", line_number++, "Network Interface Tx", network_stats->rx / (1024.00*1024.00));
106 >                                        printf("\033[%d;2H%-25s : %5.2f m", line_number++, "Network Interface Rx", network_stats->rx / (1024.00*1024.00));
107                                          printf("\033[%d;2H%-25s : %5.2f m", line_number++, "Network Interface Tx", network_stats->tx / (1024.00*1024.00));
108                          }
109                          printf("\033[%d;2H%-25s : %ld ", line_number++, "Network Interface systime", (long) network_stats->systime);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines