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
@ -14,13 +14,13 @@ in the source distribution for its full text.
|
||||
|
||||
static const int SysArchMeter_attributes[] = {HOSTNAME};
|
||||
|
||||
static void SysArchMeter_updateValues(ATTR_UNUSED Meter* this, char* buffer, size_t size) {
|
||||
static void SysArchMeter_updateValues(Meter* this) {
|
||||
static char* string;
|
||||
|
||||
if (string == NULL)
|
||||
Platform_getRelease(&string);
|
||||
|
||||
String_safeStrncpy(buffer, string, size);
|
||||
String_safeStrncpy(this->txtBuffer, string, sizeof(this->txtBuffer));
|
||||
}
|
||||
|
||||
const MeterClass SysArchMeter_class = {
|
||||
|
Reference in New Issue
Block a user