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.5 by pajs, Thu Oct 9 16:35:24 2003 UTC vs.
Revision 1.6 by tdb, Thu Oct 16 17:54:44 2003 UTC

# Line 247 | Line 247 | void display_data(){
247          printw("%5d", stats.user_stats->num_entries);
248  
249          /* Mem */
250
250          move(6, 12);
251          printw("%7s", size_conv(stats.mem_stats->total));      
252          move(7, 12);
# Line 315 | Line 314 | void display_data(){
314                  network_stat_ptr++;
315          }
316  
317 +        /* Disk */
318          disk_stat_ptr = stats.disk_stats;
319          for(counter=0;counter<stats.disk_entries;counter++){
320                  move(13+stats.network_entries+counter, 42);
# Line 322 | Line 322 | void display_data(){
322                  move(13+stats.network_entries+counter, 62);
323                  printw("%7s", size_conv(disk_stat_ptr->avail));
324                  move(13+stats.network_entries+counter, 73);
325 <                printw("%5.2f%%", 100.00 * ((float)disk_stat_ptr->used / (float)disk_stat_ptr->size));
325 >                printw("%5.2f%%", 100.00 * ((float) (disk_stat_ptr->size - disk_stat_ptr->avail) / (float) disk_stat_ptr->size));
326                  disk_stat_ptr++;
327          }
328  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines