mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
depot_download: limit rate of update-state reports
The default rate of 100 ms keeps Sculpt too busy because the menu that displays the percentage values is drawn completely on each update. Limiting the rate to 1/4 seconds relieves the effect.
This commit is contained in:
committed by
Christian Helmuth
parent
1ead0ea3a7
commit
1f3f7282f3
@@ -29,7 +29,10 @@ void Depot_download_manager::gen_fetchurl_start_content(Xml_generator &xml,
|
||||
xml.attribute("rtc", "/dev/rtc");
|
||||
xml.attribute("socket", "/socket");
|
||||
});
|
||||
xml.node("report", [&] () { xml.attribute("progress", "yes"); });
|
||||
xml.node("report", [&] () {
|
||||
xml.attribute("progress", "yes");
|
||||
xml.attribute("delay_ms", 250);
|
||||
});
|
||||
xml.node("vfs", [&] () {
|
||||
xml.node("dir", [&] () {
|
||||
xml.attribute("name", "download");
|
||||
|
||||
Reference in New Issue
Block a user