Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/cI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ on:
jobs:

lint:
run-on: ubuntu-latest
uses: actions/checkout@v4
runs-on: ubuntu-latest

# Steps
steps:

# Checkout repository
- name: Checkout repository
uses: actions/checkout@v4

# Install shellcheck to check for sytax errors and best practices in scripts
- name: Install shellcheck
run: sudo apt-get install -y -qq shellcheck
Expand Down
2 changes: 1 addition & 1 deletion ram-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RAM_USAGE=$(free | grep Mem | awk '{print $3/$2 * 100.0}')
# Discard the fraction after the dot
CURRENT_USAGE=${RAM_USAGE%.*}

if (( CURRENT_USAGE > $THRESHOLD )); then
if (( CURRENT_USAGE > THRESHOLD )); then
# zenity displays the message and disappears only when you press "Ok"
# I prefer this over notify-send. You can miss the brief notify-send message
zenity --info --title="RAM WATCHDOG" --text="Your RAM usage just passed ${THRESHOLD}%"
Expand Down
Loading