summaryrefslogtreecommitdiffstats
path: root/FileDescriptorMeter.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-04-11 22:49:39 +0200
committerBenny Baumann <BenBE@geshi.org>2023-04-11 22:50:18 +0200
commitda255cb33fd8ddd233232850f9465e6ddb47015f (patch)
tree488374400faded42a87dab75b280261aa4d24492 /FileDescriptorMeter.c
parentc878343784f23d7cb18ccec6aa034f01aee8069e (diff)
Minor code formatting consistency fixes
Diffstat (limited to 'FileDescriptorMeter.c')
-rw-r--r--FileDescriptorMeter.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/FileDescriptorMeter.c b/FileDescriptorMeter.c
index e1163710..2d939d66 100644
--- a/FileDescriptorMeter.c
+++ b/FileDescriptorMeter.c
@@ -47,12 +47,12 @@ static void FileDescriptorMeter_updateValues(Meter* this) {
* 3. If the maximum is effectively unlimited (AKA > 1<<30),
* Do the same as for 2, but cap at 1<<30.
*/
- if (this->values[1] <= 1<<16) {
+ if (this->values[1] <= 1 << 16) {
this->total = this->values[1];
} else {
if (this->total < 16 * this->values[0]) {
- for (this->total = 1<<16; this->total < 16 * this->values[0]; this->total *= 2) {
- if (this->total >= 1<<30) {
+ for (this->total = 1 << 16; this->total < 16 * this->values[0]; this->total *= 2) {
+ if (this->total >= 1 << 30) {
break;
}
}
@@ -62,8 +62,8 @@ static void FileDescriptorMeter_updateValues(Meter* this) {
this->total = this->values[1];
}
- if (this->total > 1<<30) {
- this->total = 1<<30;
+ if (this->total > 1 << 30) {
+ this->total = 1 << 30;
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy