mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-09 04:15:52 +00:00
parent
7ac6f93838
commit
a7b878cbb5
@ -21,8 +21,8 @@ Microseconds Genode::read_sec_attr(Xml_node const node,
|
||||
char const *name,
|
||||
uint64_t const default_sec)
|
||||
{
|
||||
uint64_t sec = node.attribute_value(name, (uint64_t)0);
|
||||
if (!sec) {
|
||||
uint64_t sec = node.attribute_value(name, ~(uint64_t)0);
|
||||
if (sec == ~(uint64_t)0) {
|
||||
sec = default_sec;
|
||||
}
|
||||
return Microseconds(sec * 1000 * 1000);
|
||||
|
Loading…
x
Reference in New Issue
Block a user