mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 20:44:35 +03:00
Reduce scope of local variables
This commit is contained in:

committed by
Christian Göttsche

parent
ddda739cb2
commit
03f9a86918
@ -47,10 +47,10 @@ static void ZfsArcMeter_updateValues(Meter* this, char* buffer, int size) {
|
||||
}
|
||||
|
||||
static void ZfsArcMeter_display(const Object* cast, RichString* out) {
|
||||
char buffer[50];
|
||||
const Meter* this = (const Meter*)cast;
|
||||
|
||||
if (this->values[5] > 0) {
|
||||
char buffer[50];
|
||||
Meter_humanUnit(buffer, this->total, 50);
|
||||
RichString_append(out, CRT_colors[METER_VALUE], buffer);
|
||||
Meter_humanUnit(buffer, this->values[5], 50);
|
||||
|
Reference in New Issue
Block a user