mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-03 17:44:44 +02:00
Swap in and out bytes
This commit is contained in:
parent
419eb00583
commit
a16e4e2e74
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue