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

Comparing projects/libstatgrab/src/saidar/saidar.c (file contents):
Revision 1.11 by ats, Mon Oct 20 22:35:14 2003 UTC vs.
Revision 1.12 by tdb, Tue Oct 21 18:01:15 2003 UTC

# Line 295 | Line 295 | void display_data(){
295                  printw("%8s", size_conv(stats.swap_stats->free));
296          }
297  
298 <        if (stats.mem_stats != NULL && stats.swap_stats != NULL) {      
299 <                /* VM */
298 >        /* VM */
299 >        if (stats.mem_stats != NULL) {  
300                  move(6, 54);
301                  printw("%5.2f%%", (100.00 * (float)(stats.mem_stats->used)/stats.mem_stats->total));
302 +        }
303 +        if (stats.swap_stats != NULL) {
304                  move(7, 54);
305                  printw("%5.2f%%", (100.00 * (float)(stats.swap_stats->used)/stats.swap_stats->total));
306 +        }
307 +        if (stats.mem_stats != NULL && stats.swap_stats != NULL) {      
308                  move(8, 54);
309                  printw("%5.2f%%", (100.00 * (float)(stats.mem_stats->used+stats.swap_stats->used)/(stats.mem_stats->total+stats.swap_stats->total)));
310          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines