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
ef5b27f3
Commit
ef5b27f3
authored
Aug 30, 2006
by
Hisham Muhammad
Browse files
A fix for long uptimes, sent my Marc Cahalan
parent
cc5af25e
Changes
1
Hide whitespace changes
Inline
Side-by-side
UptimeMeter.c
View file @
ef5b27f3
...
...
@@ -44,7 +44,7 @@ void UptimeMeter_setValues(Meter* this, char* buffer, int len) {
if
(
days
>
this
->
total
)
{
this
->
total
=
days
;
}
char
daysbuf
[
1
0
];
char
daysbuf
[
1
5
];
if
(
days
>
100
)
{
sprintf
(
daysbuf
,
"%d days(!), "
,
days
);
}
else
if
(
days
>
1
)
{
...
...
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