mirror of https://github.com/xzeldon/htop.git
Drop newline at end of if branch
This commit is contained in:
parent
ff4ee2eafc
commit
635d4cfe60
|
@ -27,8 +27,7 @@ static void DateMeter_updateValues(Meter* this, char* buffer, size_t size) {
|
||||||
int year = lt->tm_year + 1900;
|
int year = lt->tm_year + 1900;
|
||||||
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {
|
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {
|
||||||
this->total = 366;
|
this->total = 366;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
this->total = 365;
|
this->total = 365;
|
||||||
}
|
}
|
||||||
strftime(buffer, size, "%F", lt);
|
strftime(buffer, size, "%F", lt);
|
||||||
|
|
|
@ -26,8 +26,7 @@ static void DateTimeMeter_updateValues(Meter* this, char* buffer, size_t size) {
|
||||||
int year = lt->tm_year + 1900;
|
int year = lt->tm_year + 1900;
|
||||||
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {
|
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {
|
||||||
this->total = 366;
|
this->total = 366;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
this->total = 365;
|
this->total = 365;
|
||||||
}
|
}
|
||||||
this->values[0] = lt->tm_yday;
|
this->values[0] = lt->tm_yday;
|
||||||
|
|
Loading…
Reference in New Issue