diff options
Diffstat (limited to 'brightness.cpp')
-rw-r--r-- | brightness.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/brightness.cpp b/brightness.cpp index c06427d..9fe8221 100644 --- a/brightness.cpp +++ b/brightness.cpp @@ -110,7 +110,7 @@ private: } public: - int increment() const { return 100; } + int increment() const { return 1000; } bool suitable() { struct stat st; @@ -229,6 +229,7 @@ int main(int argc,char **argv){ int n = strtol(argv[1], &endp, 10); if (argv[1][0] == '\0' || *endp != '\0') { std::cerr << "Invalid number '" << argv[1] << "'" << std::endl; + return 1; } backlight->set_brightness(backlight->convert_absolute_brightness(n)); } |