mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Save text buffer in Meter
This commit is contained in:

committed by
BenBE

parent
23c5b9ce3c
commit
2d1042adb3
@ -19,7 +19,7 @@ static const int DateMeter_attributes[] = {
|
||||
DATE
|
||||
};
|
||||
|
||||
static void DateMeter_updateValues(Meter* this, char* buffer, size_t size) {
|
||||
static void DateMeter_updateValues(Meter* this) {
|
||||
time_t t = time(NULL);
|
||||
struct tm result;
|
||||
const struct tm* lt = localtime_r(&t, &result);
|
||||
@ -30,7 +30,7 @@ static void DateMeter_updateValues(Meter* this, char* buffer, size_t size) {
|
||||
} else {
|
||||
this->total = 365;
|
||||
}
|
||||
strftime(buffer, size, "%F", lt);
|
||||
strftime(this->txtBuffer, sizeof(this->txtBuffer), "%F", lt);
|
||||
}
|
||||
|
||||
const MeterClass DateMeter_class = {
|
||||
|
Reference in New Issue
Block a user