Rename UIRecordView::on_tick_second() -> update_status_display().

This commit is contained in:
Jared Boone 2016-06-21 11:35:15 -07:00
parent 19e5e111a9
commit 44fb66b4f9
2 changed files with 5 additions and 0 deletions

View File

@ -317,6 +317,10 @@ Optional<File::Error> RecordView::write_metadata_file(const std::string& filenam
}
void RecordView::on_tick_second() {
update_status_display();
}
void RecordView::update_status_display() {
if( is_active() ) {
const auto dropped_percent = std::min(99U, capture_thread->state().dropped_percent());
const auto s = to_string_dec_uint(dropped_percent, 2, ' ') + "\%";

View File

@ -67,6 +67,7 @@ private:
Optional<File::Error> write_metadata_file(const std::string& filename);
void on_tick_second();
void update_status_display();
void handle_error(const File::Error error);