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.8 by pajs, Sat Oct 18 14:08:36 2003 UTC vs.
Revision 1.9 by tdb, Sat Oct 18 15:05:17 2003 UTC

# Line 335 | Line 335 | void display_data(){
335                  move(13+stats.network_entries+counter, 62);
336                  printw("%7s", size_conv(disk_stat_ptr->avail));
337                  move(13+stats.network_entries+counter, 73);
338 <                printw("%5.2f%%", 100.00 * ((float) (disk_stat_ptr->size - disk_stat_ptr->avail) / (float) disk_stat_ptr->size));
338 >                printw("%5.2f%%", 100.00 * ((float) disk_stat_ptr->used / (float) (disk_stat_ptr->used + disk_stat_ptr->avail)));
339                  disk_stat_ptr++;
340          }
341  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines