Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
66e0e06b
Commit
66e0e06b
authored
Sep 06, 2006
by
Jan Zerebecki
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winefile: Fix the display of free disk space in the statusbar.
parent
2a42379a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
winefile.c
programs/winefile/winefile.c
+3
-3
No files found.
programs/winefile/winefile.c
View file @
66e0e06b
...
...
@@ -2941,11 +2941,11 @@ static void format_bytes(LPTSTR buffer, LONGLONG bytes)
float
fBytes
=
(
float
)
bytes
;
if
(
bytes
>=
1073741824
)
/* 1 GB */
ws
printf
(
buffer
,
sFmtGB
,
fBytes
/
1073741824
.
f
+
.
5
f
);
_st
printf
(
buffer
,
sFmtGB
,
fBytes
/
1073741824
.
f
+
.
5
f
);
else
if
(
bytes
>=
1048576
)
/* 1 MB */
ws
printf
(
buffer
,
sFmtMB
,
fBytes
/
1048576
.
f
+
.
5
f
);
_st
printf
(
buffer
,
sFmtMB
,
fBytes
/
1048576
.
f
+
.
5
f
);
else
if
(
bytes
>=
1024
)
/* 1 kB */
ws
printf
(
buffer
,
sFmtkB
,
fBytes
/
1024
.
f
+
.
5
f
);
_st
printf
(
buffer
,
sFmtkB
,
fBytes
/
1024
.
f
+
.
5
f
);
else
_stprintf
(
buffer
,
sLongNumFmt
,
bytes
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment