diff options
author | David Robillard <d@drobilla.net> | 2014-04-06 19:50:38 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-04-06 19:50:38 +0000 |
commit | ea6f9d14761645d1228f3a945e47b96cfcd149a6 (patch) | |
tree | 11f937b8f630f9d720546d5bdd4fae8229ad37b3 | |
parent | 3ef2b738b728b9758b527028b88d9d44b929c1d7 (diff) | |
download | patchage-ea6f9d14761645d1228f3a945e47b96cfcd149a6.tar.gz patchage-ea6f9d14761645d1228f3a945e47b96cfcd149a6.tar.bz2 patchage-ea6f9d14761645d1228f3a945e47b96cfcd149a6.zip |
Fix compilation.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5360 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/Patchage.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 85d950f..5507f25 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -418,13 +418,9 @@ Patchage::update_load() #if defined(PATCHAGE_LIBJACK) || defined(HAVE_JACK_DBUS) if (_jack_driver->is_attached()) { char buf[8]; - snprintf(tmp_buf, sizeof(tmp_buf), "%u", _jack_driver->get_xruns()); - _xrun_progress->set_text(std::string(tmp_buf) + " Dropouts"); - - const float max_dsp_load = _jack_driver->get_max_dsp_load(); - if (max_dsp_load != last_max_dsp_load) { - _xrun_progress->set_fraction(max_dsp_load); - } + snprintf(buf, sizeof(buf), "%u", _jack_driver->get_xruns()); + _xrun_progress->set_text(std::string(buf) + " Dropouts"); + _xrun_progress->set_fraction(_jack_driver->get_max_dsp_load()); } #endif |