diff options
author | Benny Baumann <BenBE@geshi.org> | 2022-10-22 19:19:39 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2022-10-24 23:13:22 +0200 |
commit | 40104588f38250afde9f71b6204d789039bbfe3e (patch) | |
tree | 745e532580371db2ca85b4ae57b10f1ad3396531 /CPUMeter.c | |
parent | 4ad530d1c00f649dcd02b818a3ccc7ded0aaf12d (diff) |
Reformat code base
This includes:
- Wrap function implementations
- Pointer alignment for function signatures
- Pointer alignment for variable declarations
- Whitespace after keywords
- Whitespace after comma
- Whitespace around initializers
- Whitespace around operators
- Code indentation
- Line break for single line statements
- Misleading alignment
Diffstat (limited to 'CPUMeter.c')
-rw-r--r-- | CPUMeter.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -187,7 +187,7 @@ static void CPUMeter_display(const Object* cast, RichString* out) { static void AllCPUsMeter_getRange(const Meter* this, int* start, int* count) { const CPUMeterData* data = this->meterData; unsigned int cpus = data->cpus; - switch(Meter_name(this)[0]) { + switch (Meter_name(this)[0]) { default: case 'A': // All *start = 0; @@ -195,10 +195,10 @@ static void AllCPUsMeter_getRange(const Meter* this, int* start, int* count) { break; case 'L': // First Half *start = 0; - *count = (cpus+1) / 2; + *count = (cpus + 1) / 2; break; case 'R': // Second Half - *start = (cpus+1) / 2; + *start = (cpus + 1) / 2; *count = cpus / 2; break; } |