diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2018-02-16 09:03:57 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2018-02-17 09:24:14 -0600 |
commit | 309ca938e6a6617a2cc40cb6748a46c327e9f773 (patch) | |
tree | c3ef1fe84e7a13cfce456d6647ce2f28cbe0ff5a /gtk2_ardour/ardour_ui.cc | |
parent | ed459ab70a4bbfbb771bb87fa26273a9c449199e (diff) |
Add Disk IO gauge.
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index c1ebaac229..5a37dc1d85 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -1739,22 +1739,10 @@ ARDOUR_UI::update_buffer_load () /* If this text is changed, the set_size_request_to_display_given_text call in ARDOUR_UI::resize_text_widgets should also be changed. */ - - if (_session) { - snprintf ( - buf, sizeof (buf), - _("Buffers: <span foreground=\"green\">p:</span><span foreground=\"%s\">%" PRIu32 "%%</span> " - "<span foreground=\"green\">c:</span><span foreground=\"%s\">%" PRIu32 "%%</span>"), - playback <= 5 ? X_("red") : X_("green"), - playback, - capture <= 5 ? X_("red") : X_("green"), - capture - ); - - buffer_load_label.set_markup (buf); - } else { - buffer_load_label.set_text (""); - } + + uint32_t max_load = std::min ( playback, capture ); + + disk_io_indicator.set_disk_io(max_load); } void |