aboutsummaryrefslogtreecommitdiffstats
path: root/Adjbacklight.java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-01-20 20:32:28 +0100
committerMattias Andrée <maandree@operamail.com>2013-01-20 20:32:28 +0100
commit463a48b612d51b694894f867ac56dff9d60e6440 (patch)
tree1fab0c8445375c05fa31a3250a62eedbbfec0d70 /Adjbacklight.java
parentoverview (diff)
downloadadjbacklight-463a48b612d51b694894f867ac56dff9d60e6440.tar.gz
adjbacklight-463a48b612d51b694894f867ac56dff9d60e6440.tar.bz2
adjbacklight-463a48b612d51b694894f867ac56dff9d60e6440.tar.xz
m + using chapter
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Adjbacklight.java')
-rw-r--r--Adjbacklight.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/Adjbacklight.java b/Adjbacklight.java
index 597b575..62b2701 100644
--- a/Adjbacklight.java
+++ b/Adjbacklight.java
@@ -64,8 +64,10 @@ public class Adjbacklight
if (max <= min)
System.exit(127);
- int step = (max - min) / 100;
+ int step = (max - min) / 200;
int init = cur;
+ if (step == 0)
+ step = 1;
System.out.print("\n\n\n\n\n\n");
print(min, max, init, cur, width);