mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-962: Because of the same reason to this (CLOUDSTACK-685)
https://reviews.apache.org/r/11157/ Signed-off-by: Chip Childers <chip.childers@gmail.com>
This commit is contained in:
parent
21cb2c67b2
commit
3fa8fda37c
@ -3957,6 +3957,11 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase implements V
|
|||||||
stats.setNetBytesSent(stats.getNetBytesSent() + stats.getCurrentBytesSent());
|
stats.setNetBytesSent(stats.getNetBytesSent() + stats.getCurrentBytesSent());
|
||||||
}
|
}
|
||||||
stats.setCurrentBytesSent(answer.getBytesSent());
|
stats.setCurrentBytesSent(answer.getBytesSent());
|
||||||
|
if (! _dailyOrHourly) {
|
||||||
|
//update agg bytes
|
||||||
|
stats.setAggBytesSent(stats.getNetBytesSent() + stats.getCurrentBytesSent());
|
||||||
|
stats.setAggBytesReceived(stats.getNetBytesReceived() + stats.getCurrentBytesReceived());
|
||||||
|
}
|
||||||
_userStatsDao.update(stats.getId(), stats);
|
_userStatsDao.update(stats.getId(), stats);
|
||||||
txn.commit();
|
txn.commit();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user