summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlxhillwind2015-11-29 17:54:41 +0800
committerlxhillwind2015-11-29 17:54:41 +0800
commited8c74803dddee2e4ab22a7b12205b54f59fd49f (patch)
tree43b89cb925c9f253f418be0a6384fee1e7ddb63b
parente988a5c2a714cf1706e19e04af2597ea6ca8f631 (diff)
downloadaur-ed8c74803dddee2e4ab22a7b12205b54f59fd49f.tar.gz
Few changes.
-rw-r--r--percent_float_to_int.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/percent_float_to_int.patch b/percent_float_to_int.patch
index 49fedfef3b55..ec9c5d6fe0d8 100644
--- a/percent_float_to_int.patch
+++ b/percent_float_to_int.patch
@@ -1,11 +1,11 @@
--- xbacklight.c 2013-10-08 11:40:38.000000000 +0800
-+++ xbacklight.c 2015-11-29 14:39:46.453990196 +0800
++++ xbacklight.c 2015-11-29 17:53:54.254565462 +0800
@@ -282,7 +282,7 @@
max = values[1];
if (op == Get) {
- printf ("%f\n", (cur - min) * 100 / (max - min));
-+ printf ("%d\n", (int)((cur - min) * 100 / (max - min)));
++ printf ("%.0f\n", (cur - min) * 100 / (max - min));
} else {
set = value * (max - min) / 100;
switch (op) {