MCPcopy Create free account
hub / github.com/ECSTeam/cloudfoundry-top-plugin / updateDisplay

Method updateDisplay

ui/masterUi.go:606–624  ·  view source on GitHub ↗
(g *gocui.Gui)

Source from the content-addressed store, hash-verified

604}
605
606func (mui *MasterUI) updateDisplay(g *gocui.Gui) {
607 if mui.updateDisplayInProgress {
608 return
609 }
610 mui.updateDisplayInProgress = true
611 g.Update(func(g *gocui.Gui) error {
612
613 if !mui.displayPaused {
614 // This takes a snapshot of the live data
615 mui.snapshotLiveData()
616 mui.commonData.PostProcessData()
617 }
618
619 mui.updateHeaderDisplay(g)
620 mui.currentDataView.UpdateDisplay(g)
621 mui.updateDisplayInProgress = false
622 return nil
623 })
624}
625
626func (mui *MasterUI) refreshMetadata(g *gocui.Gui, v *gocui.View) error {
627 go mui.router.GetProcessor().FlushCache()

Callers 4

createAndOpenViewMethod · 0.95
OpenViewMethod · 0.95
clearStatsMethod · 0.95

Calls 4

snapshotLiveDataMethod · 0.95
updateHeaderDisplayMethod · 0.95
PostProcessDataMethod · 0.80
UpdateDisplayMethod · 0.65

Tested by

no test coverage detected