bin/ciwatch in matrixci-0.0.6 vs bin/ciwatch in matrixci-0.0.7

- old
+ new

@@ -8,12 +8,12 @@ attr_accessor :display_length def repaint g, r, c, crow, content, focus_type, selected color = $datacolor att = NORMAL - att = REVERSE if selected build = JSON.parse(content) + att = REVERSE if selected || build["highlight"] color = get_color($datacolor, :yellow, :black) if build["color"] == "yellow" color = get_color($datacolor, :red, :black) if build["color"] == "red" color = get_color($datacolor, :green, :black) if build["color"] == "green" g.wattron(Ncurses.COLOR_PAIR(color) | att) g.mvwprintw(r, c, "%s", :string, build["str"]); @@ -49,21 +49,15 @@ end # stack status_line :row => FFI::NCurses.LINES-1 while true + sleep(10) lb.list get_latest_runs @form.repaint @window.wrefresh - sleep(1) end end # app while true - x.refresh - sleep(10) + x.form end -# while true -# puts Time.now.utc -# system("ci all") -# sleep(30) -# end