Skip to content

Commit

Permalink
Merge pull request #7 from skleeschulte/master
Browse files Browse the repository at this point in the history
Fix for non-english localizations + commands in readme file
  • Loading branch information
StuartIanNaylor authored Feb 20, 2022
2 parents 92be000 + edab4d1 commit f62bb38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ _____
cd zram-swap-config
chmod +x install.sh && sudo ./install.sh
cd ..
rm -r zram-swap-config
rm -rf zram-swap-config

## Upgrade

Expand Down Expand Up @@ -133,7 +133,7 @@ sudo systemctl disable dphys-swapfile
## Uninstall

```
chmod +x /usr/local/bin/zram-swap-config-uninstall.sh && sudo /usr/local/bin/zram-swap-config-uninstall.sh
sudo chmod +x /usr/local/bin/zram-swap-config-uninstall.sh && sudo /usr/local/bin/zram-swap-config-uninstall.sh
```

## Git Branches & Update
Expand Down
2 changes: 1 addition & 1 deletion zram-swap-config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
. /etc/zram-swap-config.conf

createZramSwaps () {
totalmem=$(free|awk '/^Mem:/{print $2}')
totalmem=$(awk '/MemTotal/ {print $2}' /proc/meminfo)
mem=$((( totalmem * MEM_FACTOR / 100 / SWAP_DEVICES ) * 1024 ))
drive_size=$((( mem * DRIVE_FACTOR ) /100 ))
# Check Zram Class created
Expand Down

0 comments on commit f62bb38

Please sign in to comment.