diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2010-02-14 08:58:52 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2010-02-14 08:58:52 +0100 |
| commit | 55605a80092452ce593cb05df12a404ad47aa808 (patch) | |
| tree | f3eb0ab4615f473ae3098657ab6e84fd5cc54481 /UMain.pas | |
| parent | 8f1ad519dd5ae1d17f625044bf18c3d8e77acea5 (diff) | |
| download | tuxcmd-55605a80092452ce593cb05df12a404ad47aa808.tar.xz | |
Don't show negative free space
Diffstat (limited to 'UMain.pas')
| -rw-r--r-- | UMain.pas | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1950,6 +1950,9 @@ begin else s := RightPathLabel.Caption; CommandLineLabel.Caption := Format('%s@%s:%s>', [GetUserName, GetHostName, s]); LeftPanelEngine.GetFileSystemInfo(LeftPanelEngine.Path, FSSize, FSFree, FSName); + // *TODO: hide numbers if filesystem info cannot be determined + if FSSize < 0 then FSSize := 0; + if FSFree < 0 then FSFree := 0; if FSName <> '' then LeftDiskInfoLabel.Caption := Format(LANGDiskStatVolNameFmt, [FSName, FormatSize(FSFree, 1024), |
