mirror of https://github.com/apache/cloudstack.git
network usage takes 500ms sleep
This commit is contained in:
parent
4a7c684526
commit
e3f5e75c44
|
|
@ -263,6 +263,12 @@ public class MockVmManagerImpl implements MockVmManager {
|
|||
|
||||
@Override
|
||||
public NetworkUsageAnswer getNetworkUsage(NetworkUsageCommand cmd) {
|
||||
try {
|
||||
Thread.sleep(500);
|
||||
s_logger.debug("get network usage for router: " + cmd.getDomRName());
|
||||
} catch (InterruptedException e) {
|
||||
|
||||
}
|
||||
return new NetworkUsageAnswer(cmd, null, 100L, 100L);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue