Skip to content

Commit

Permalink
u64
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Mar 11, 2024
1 parent 5de745c commit 24c5b4b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions memguardian/memory_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ func getSysInfo() (*SysInfo, error) {
}

si := &SysInfo{
Uptime: sysInfo.Uptime,
totalRam: sysInfo.Totalram,
freeRam: sysInfo.Freeram,
SharedRam: sysInfo.Freeram,
BufferRam: sysInfo.Bufferram,
TotalSwap: sysInfo.Totalswap,
FreeSwap: sysInfo.Freeswap,
Uptime: int64(sysInfo.Uptime),
totalRam: uint64(sysInfo.Totalram),
freeRam: uint64(sysInfo.Freeram),
SharedRam: uint64(sysInfo.Freeram),
BufferRam: uint64(sysInfo.Bufferram),
TotalSwap: uint64(sysInfo.Totalswap),
FreeSwap: uint64(sysInfo.Freeswap),
Unit: uint64(sysInfo.Unit),
}

Expand Down

0 comments on commit 24c5b4b

Please sign in to comment.