Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
2df36ee2
Commit
2df36ee2
authored
Aug 29, 2015
by
Hisham Muhammad
Browse files
Merge pull request #254 from eworm-de/kilobyte-precision
kilobytes is the smallest unit and never has precision
parents
a859e920
bf456972
Changes
1
Hide whitespace changes
Inline
Side-by-side
Meter.c
View file @
2df36ee2
...
...
@@ -157,6 +157,9 @@ int Meter_humanUnit(char* buffer, unsigned long int value, int size) {
++
prefix
;
}
if
(
*
prefix
==
'K'
)
precision
=
0
;
for
(;
precision
>
0
;
precision
--
)
{
powj
*=
10
;
if
(
value
/
powi
<
powj
)
...
...
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