mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* 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:
parent
4082a9eb4a
commit
be957eb563
@ -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>
|
2004-10-18 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
|
||||||
|
|
||||||
* cygcheck.cc (pretty_id): Don't let i become negative. Fix
|
* cygcheck.cc (pretty_id): Don't let i become negative. Fix
|
||||||
|
@ -1064,7 +1064,7 @@ dump_sysinfo ()
|
|||||||
if (givehelp)
|
if (givehelp)
|
||||||
{
|
{
|
||||||
printf ("Listing available drives...\n");
|
printf ("Listing available drives...\n");
|
||||||
printf ("Drv Type Size Free Flags Name\n");
|
printf ("Drv Type Size Used Flags Name\n");
|
||||||
}
|
}
|
||||||
int prev_mode =
|
int prev_mode =
|
||||||
SetErrorMode (SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
|
SetErrorMode (SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
|
||||||
@ -1135,9 +1135,9 @@ dump_sysinfo ()
|
|||||||
|
|
||||||
printf ("%.2s %s %-6s ", drive, drive_type, fsname);
|
printf ("%.2s %s %-6s ", drive, drive_type, fsname);
|
||||||
if (capacity_mb >= 0)
|
if (capacity_mb >= 0)
|
||||||
printf ("%5dMb %3d%% ", (int) capacity_mb, (int) percent_full);
|
printf ("%7dMb %3d%% ", (int) capacity_mb, (int) percent_full);
|
||||||
else
|
else
|
||||||
printf (" N/A N/A ");
|
printf (" N/A N/A ");
|
||||||
printf ("%s %s %s %s %s %s %s\n",
|
printf ("%s %s %s %s %s %s %s\n",
|
||||||
flags & FS_CASE_IS_PRESERVED ? "CP" : " ",
|
flags & FS_CASE_IS_PRESERVED ? "CP" : " ",
|
||||||
flags & FS_CASE_SENSITIVE ? "CS" : " ",
|
flags & FS_CASE_SENSITIVE ? "CS" : " ",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user