'PowerTOP --calibrate' output
by Amit Singh
Hi.
After exiting 'sudo powertop --calibrate', there are some statistics
printed like "Score = 1.7 (18069.1) Guess = 12.1 Actual = 12.3" (These
numbers are made up, I do not remember the actual values I got). I tried
looking up what these values mean but could not find it mentioned anywhere
in the User's guide. Can someone point me to a resource that has this
information? Or if you know what these mean then kindly explain it to me as
well.
Thanks!
Amit
5 years, 1 month
[PATCH] src/display.h: fix misleading-indentation warning
by Joe Konno
From: Joe Konno <joe.konno(a)intel.com>
Because of how the code blocks are formatted, gcc 6 emits a "misleading
indentation" warning around the cursor_up() and cursor_down() virtual
methods.
Fix the warning by tweaking the code's indentation.
Signed-off-by: Joe Konno <joe.konno(a)intel.com>
---
src/display.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/display.h b/src/display.h
index 9af3ec0b6e72..9db87ec85464 100644
--- a/src/display.h
+++ b/src/display.h
@@ -62,10 +62,14 @@ public:
}
virtual void cursor_down(void) {
- if (cursor_pos < cursor_max ) cursor_pos++; repaint();
+ if (cursor_pos < cursor_max)
+ cursor_pos++;
+ repaint();
} ;
virtual void cursor_up(void) {
- if (cursor_pos > 0) cursor_pos--; repaint();
+ if (cursor_pos > 0)
+ cursor_pos--;
+ repaint();
};
virtual void cursor_left(void) { };
virtual void cursor_right(void) { };
--
2.13.0
5 years, 1 month