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

flux-top: initialize f character before drawing panes #4982

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

grondo
Copy link
Contributor

@grondo grondo commented Mar 6, 2023

Problem: The initial draw of the summary pane shows "(null)" instead of "ƒ" or "f" because the top->f_char is not initialized until after the panes are created.

Move the initial draw of top summary and job panes to after the f_char member is initialized.

Copy link
Member

@garlick garlick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I noticed that and meant to look into it. Great!

Problem: The initial draw of the summary pane shows "(null)" instead of
"ƒ" or "f" because the top->f_char is not initialized until *after*
the panes are created.

Move the initial draw of top summary and job panes to after the f_char
member is initialized.
@codecov
Copy link

codecov bot commented Mar 6, 2023

Codecov Report

Merging #4982 (a0a1d87) into master (6518c13) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head a0a1d87 differs from pull request most recent head 0d47f92. Consider uploading reports for the commit 0d47f92 to get more accurate results

@@            Coverage Diff             @@
##           master    #4982      +/-   ##
==========================================
+ Coverage   83.06%   83.08%   +0.01%     
==========================================
  Files         442      442              
  Lines       76079    76079              
==========================================
+ Hits        63198    63211      +13     
+ Misses      12881    12868      -13     
Impacted Files Coverage Δ
src/cmd/top/top.c 86.44% <100.00%> (ø)
src/common/libflux/flog.c 82.60% <0.00%> (-3.48%) ⬇️
src/modules/job-list/idsync.c 66.91% <0.00%> (-2.95%) ⬇️
src/modules/job-list/list.c 75.13% <0.00%> (-2.12%) ⬇️
src/common/libsubprocess/fork.c 75.38% <0.00%> (-1.54%) ⬇️
src/common/libsubprocess/local.c 84.39% <0.00%> (-1.47%) ⬇️
src/modules/job-info/guest_watch.c 73.84% <0.00%> (-1.03%) ⬇️
src/shell/shell.c 82.22% <0.00%> (+0.11%) ⬆️
src/common/libflux/handle.c 87.68% <0.00%> (+0.37%) ⬆️
src/broker/overlay.c 84.95% <0.00%> (+0.39%) ⬆️
... and 7 more

@mergify mergify bot merged commit 413e359 into flux-framework:master Mar 6, 2023
@grondo grondo deleted the top-f-fix branch March 7, 2023 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants