* cygcheck.cc (dump_sysinfo): Allow for larger drives in drive-list. Change

``Used'' to ``Free'' in helptext-title for drive-list.
This commit is contained in:
Christopher Faylor 2004-10-21 00:06:37 +00:00
parent 4082a9eb4a
commit be957eb563
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-10-20 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
* cygcheck.cc (dump_sysinfo): Allow for larger drives in drive-list.
Change ``Used'' to ``Free'' in helptext-title for drive-list.
2004-10-18 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
* cygcheck.cc (pretty_id): Don't let i become negative. Fix

View File

@ -1064,7 +1064,7 @@ dump_sysinfo ()
if (givehelp)
{
printf ("Listing available drives...\n");
printf ("Drv Type Size Free Flags Name\n");
printf ("Drv Type Size Used Flags Name\n");
}
int prev_mode =
SetErrorMode (SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
@ -1135,9 +1135,9 @@ dump_sysinfo ()
printf ("%.2s %s %-6s ", drive, drive_type, fsname);
if (capacity_mb >= 0)
printf ("%5dMb %3d%% ", (int) capacity_mb, (int) percent_full);
printf ("%7dMb %3d%% ", (int) capacity_mb, (int) percent_full);
else
printf (" N/A N/A ");
printf (" N/A N/A ");
printf ("%s %s %s %s %s %s %s\n",
flags & FS_CASE_IS_PRESERVED ? "CP" : " ",
flags & FS_CASE_SENSITIVE ? "CS" : " ",