Patch level :10.0

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :sistemato problema spazio su disco mal calcolato


git-svn-id: svn://10.65.10.50/trunk@15902 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2007-12-18 10:52:34 +00:00
parent cba9f515fe
commit ca7cabc2c3
2 changed files with 3 additions and 2 deletions

View File

@ -183,7 +183,8 @@ bool TArchive::move_file(const TFilename& file, const char* dir) const
if (!space_ok)
{
TString msg(128);
msg << TR("Lo spazio sull'unita' e' insufficiente:\n");
msg.format(FR("Lo spazio disponibile e' insufficiente:\nNecessario: %.1lf Mb; Disponibile: %ld Mb\n",
filesize/1024.0, xvt_fsys_get_disk_free_space(dest, 'M')));
if (xvt_fsys_is_floppy_drive(dest))
msg << TR("Inserire un nuovo disco e ritentare?");
else

View File

@ -2098,7 +2098,7 @@ static unsigned long compute_disk_size(const char* path, bool tot, char unit)
{
const wxString strRoot = get_disk_root(path);
wxLongLong total = 0, unused = 0;
wxGetDiskSpace(path, &total, &unused);
wxGetDiskSpace(strRoot, &total, &unused);
__int64 nBytes = tot ? total.ToDouble() : unused.ToDouble();
if (nBytes > 0)