mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Reduce scope of local variables
This commit is contained in:

committed by
Christian Göttsche

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