aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/adjbacklight.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/adjbacklight.c b/src/adjbacklight.c
index 53f3013..3baf0a1 100644
--- a/src/adjbacklight.c
+++ b/src/adjbacklight.c
@@ -497,18 +497,20 @@ int main(int argc, char** argv)
free(space);
}
else if (get)
- if (nbrightness)
- {
- brightness *= 100.f;
- brightness /= nbrightness;
- printf("%.2f%%\n", brightness);
- fflush(stdout);
- }
- else
- {
- printf("%s\n", "100.00%");
- fflush(stdout);
- }
+ {
+ if (nbrightness)
+ {
+ brightness *= 100.f;
+ brightness /= nbrightness;
+ printf("%.2f%%\n", brightness);
+ fflush(stdout);
+ }
+ else
+ {
+ printf("%s\n", "100.00%");
+ fflush(stdout);
+ }
+ }
}