Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The first two lines of "top" output is not visible in textboxes #55

Open
anta5010 opened this issue Aug 22, 2019 · 0 comments
Open

The first two lines of "top" output is not visible in textboxes #55

anta5010 opened this issue Aug 22, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@anta5010
Copy link

I don't see the top two lines (with uptime, load averages, taks, etc) of the "top" command output in textboxes.

This is the output of the command:

top - 16:17:43 up 1 day,  9:59,  1 user,  load average: 3.86, 5.15, 5.02
Tasks: 1955 total,   4 running, 1923 sleeping,   0 stopped,  28 zombie
%Cpu(s):  7.1 us,  2.2 sy,  0.0 ni, 89.6 id,  0.5 wa,  0.0 hi,  0.5 si,  0.0 st
KiB Mem : 73932664 total, 20585044 free, 42106204 used, 11241416 buff/cache
KiB Swap: 16777212 total, 16777212 free,        0 used. 29785392 avail Mem

This is what I see in a textbox:

┌─ SSH AP12-CTRL3 ─────────────────────────────────────────────────────────────────┐
│                                                                                  │
│ %Cpu(s): 25.8 us,  4.5 sy,  0.0 ni, 67.1 id,  1.6 wa,  0.0 hi,  1.1 si,  0.0 st  │
│ KiB Mem : 73932664 total, 19868300 free, 42800772 used, 11263592 buff/cache      │
│ KiB Swap: 16777212 total, 16777212 free,        0 used. 29081084 avail Mem       │
│     PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND    │
│   40153 42435     20   0  505252 262224   2312 R  87.5  0.4 184:04.73 neutron-+  │
│   39890 42434     20   0   17.1g   1.8g 145996 S  78.5  2.6 642:54.60 mysqld     │
│   40149 42435     20   0  504192 261164   2312 S  75.0  0.4 184:18.85 neutron-+  │
│   36016 42439     20   0   19.5g   1.1g   4468 S  71.5  1.5 941:18.90 beam.smp   │
│   40146 42435     20   0  534168 284064   2312 S  62.5  0.4 174:22.72 neutron-+  │
│  398434 openvsw+  10 -10 2310908 107236  13752 S  39.0  0.1 198:12.35 ovs-vswi+  │
└──────────────────────────────────────────────────────────────────────────────────┘

I tried moving and resizing of the textbox, doesn't help. Textbox config is very simple:

  - title: SSH AP12-CTRL3
    position: [[0, 25], [50, 13]]
    rate-ms: 2000
    pty: true
    init: $ctrl3
    sample: top

I can see the two missing line if I change sample: top to sample: echo; top. But, these lines would be printed as second and third and the first line would contain data from the last:

┌─ SSH AP12-CTRL3 ─────────────────────────────────────────────────────────────────┐
│                                                                                  │
│ 24856 42435     20   0  652288 321340   8144 S   8.5  0.4 146:25.65 neutron-+    │
│ top - 16:24:08 up 1 day, 10:05,  2 users,  load average: 5.34, 5.88, 5.51        │
│ Tasks: 2025 total,   6 running, 1989 sleeping,   0 stopped,  30 zombie           │
│ %Cpu(s): 13.9 us,  3.0 sy,  0.0 ni, 81.7 id,  0.7 wa,  0.0 hi,  0.7 si,  0.0 st  │
│ KiB Mem : 73932664 total, 20154456 free, 42510780 used, 11267428 buff/cache      │
│ KiB Swap: 16777212 total, 16777212 free,        0 used. 29378672 avail Mem       │
│     PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND    │
│   40148 42435     20   0  523576 274008   2312 R  92.5  0.4 179:48.86 neutron-+  │
│   36016 42439     20   0   19.5g   1.1g   4468 S  57.0  1.5 943:32.69 beam.smp   │
│   40151 42435     20   0  514352 271324   2312 R  56.0  0.4 179:21.51 neutron-+  │
└──────────────────────────────────────────────────────────────────────────────────┘
@sqshq sqshq added the bug Something isn't working label Aug 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants