aboutsummaryrefslogtreecommitdiff
path: root/powerdebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'powerdebug.c')
-rw-r--r--powerdebug.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/powerdebug.c b/powerdebug.c
index 0eee7c5..4d94829 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -258,11 +258,8 @@ int mainloop(struct powerdebug_options *options)
struct timeval tval;
fd_set readfds;
- if (options->selectedwindow != CLOCK || !cont) {
- create_windows(options->selectedwindow);
- show_header(options->selectedwindow);
- create_selectedwindow(options->selectedwindow);
- }
+ /* if (options->selectedwindow != CLOCK || !cont) */
+ /* show_header(options->selectedwindow); */
if (options->selectedwindow == REGULATOR)
regulator_display();
@@ -328,7 +325,7 @@ static int powerdebug_dump(struct powerdebug_options *options)
static int powerdebug_display(struct powerdebug_options *options)
{
- if (display_init()) {
+ if (display_init(options->selectedwindow)) {
printf("failed to initialize display\n");
return -1;
}