mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 15:37:48 +01:00
[Summary] Updated hard disk usage calculation
[Reviewed] GZharun
This commit is contained in:
parent
0180909a38
commit
f56ccdb00e
1 changed files with 3 additions and 3 deletions
|
|
@ -1357,10 +1357,10 @@ ARDOUR_UI::update_disk_usage ()
|
|||
return;
|
||||
}
|
||||
|
||||
int disk_usage_percentage = _session->get_disk_usage_percentage ();
|
||||
_hd_load_adjustment->set_value (disk_usage_percentage);
|
||||
uint32_t const hd_buffer = 100 - (_session ? _session->capture_load () : 100);
|
||||
_hd_load_adjustment->set_value (hd_buffer);
|
||||
stringstream ss;
|
||||
ss << disk_usage_percentage;
|
||||
ss << hd_buffer;
|
||||
_hd_load_label->set_text ( ss.str() + "%" );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue