X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=state%2Fstate.go;h=c7168ed64d1aaee7eb8e94091a08aaa9ea366971;hb=c5eb0ee3c462a88cd96a8095063aae6117fce992;hp=4815359b6b6817192751b9659963aacfd2857004;hpb=7a83b8c7acba48f12c42dfb201bdfe3276173f44;p=pstop.git diff --git a/state/state.go b/state/state.go index 4815359..c7168ed 100644 --- a/state/state.go +++ b/state/state.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/sjmudd/pstop/i_s" + "github.com/sjmudd/pstop/i_s/processlist" "github.com/sjmudd/pstop/lib" ewsgben "github.com/sjmudd/pstop/p_s/events_waits_summary_global_by_event_name" essgben "github.com/sjmudd/pstop/p_s/events_stages_summary_global_by_event_name" @@ -47,7 +47,7 @@ type State struct { tlwsbt ps_table.Tabler // tlwsbt.Table_lock_waits_summary_by_table ewsgben ps_table.Tabler // ewsgben.Events_waits_summary_global_by_event_name essgben ps_table.Tabler // essgben.Events_stages_summary_global_by_event_name - users i_s.Processlist + users processlist.Object screen screen.TermboxScreen show Show mysql_version string @@ -68,7 +68,7 @@ func (state *State) Setup(dbh *sql.DB) { _, variables := lib.SelectAllGlobalVariablesByVariableName(state.dbh) // setup to their initial types/values state.fsbi = fsbi.NewFileSummaryByInstance(variables) - state.tlwsbt = new(tlwsbt.Table_lock_waits_summary_by_table) + state.tlwsbt = new(tlwsbt.Object) state.ewsgben = new(ewsgben.Object) state.essgben = new(essgben.Object)