-/* Copyright (c) 2017-2022. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2017-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
{15, 239.}}}};
const auto& data = SSD_SPEED.at(op);
+ const auto value = data.find(n);
/* no special bandwidth for this disk sharing N flows, just returns maximal capacity */
- if (data.find(n) != data.end())
- capacity = data.at(n);
-
- return capacity;
+ return value == data.end() ? capacity : value->second;
}
/**