mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-05 02:47:07 +03:00
A fix for long uptimes, sent my Marc Cahalan
This commit is contained in:
parent
cc5af25e11
commit
ef5b27f33a
@ -44,7 +44,7 @@ void UptimeMeter_setValues(Meter* this, char* buffer, int len) {
|
|||||||
if (days > this->total) {
|
if (days > this->total) {
|
||||||
this->total = days;
|
this->total = days;
|
||||||
}
|
}
|
||||||
char daysbuf[10];
|
char daysbuf[15];
|
||||||
if (days > 100) {
|
if (days > 100) {
|
||||||
sprintf(daysbuf, "%d days(!), ", days);
|
sprintf(daysbuf, "%d days(!), ", days);
|
||||||
} else if (days > 1) {
|
} else if (days > 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user