diff --git a/server/routers/gerbil/receiveBandwidth.ts b/server/routers/gerbil/receiveBandwidth.ts index fce0531f..f2569b55 100644 --- a/server/routers/gerbil/receiveBandwidth.ts +++ b/server/routers/gerbil/receiveBandwidth.ts @@ -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.megabytesOut || 0) + bytesIn, + megabytesIn: (site.megabytesIn || 0) + bytesOut, lastBandwidthUpdate: new Date().toISOString(), online })