Swap in and out bytes

This commit is contained in:
Owen Schwartz
2024-12-27 00:21:27 -05:00
parent 419eb00583
commit a16e4e2e74

View File

@@ -59,8 +59,8 @@ export const receiveBandwidth = async (
await trx
.update(sites)
.set({
megabytesIn: (site.megabytesIn || 0) + bytesIn,
megabytesOut: (site.megabytesOut || 0) + bytesOut,
megabytesOut: (site.megabytesIn || 0) + bytesIn,
megabytesIn: (site.megabytesOut || 0) + bytesOut,
lastBandwidthUpdate: new Date().toISOString(),
online
})