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

Comparing projects/libstatgrab/src/libstatgrab/network_stats.c (file contents):
Revision 1.9 by pajs, Wed Mar 12 16:15:48 2003 UTC vs.
Revision 1.11 by tdb, Sat Mar 29 18:51:13 2003 UTC

# Line 25 | Line 25
25   #include <stdlib.h>
26   #include <string.h>
27   #include "statgrab.h"
28 < #include "time.h"
28 > #include <time.h>
29   #ifdef SOLARIS
30   #include <kstat.h>
31   #include <sys/sysinfo.h>
# Line 197 | Line 197 | long long transfer_diff(long long new, long long old){
197   #define MAXVAL 18446744073709551616
198   #endif
199          long long result;
200 <        if(new>old){
200 >        if(new>=old){
201                  result = (new-old);
202          }else{
203                  result = (MAXVAL+(new-old));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines