Skip to content

Commit

Permalink
Merge pull request #7 from ViktorJp/develop
Browse files Browse the repository at this point in the history
Patch Bar Charts
  • Loading branch information
ViktorJp authored Mar 16, 2024
2 parents 5f13da1 + e0859cb commit b5e0f0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rtrmon-1.6.7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ progressbar() {
printf "${InvRed}${CWhite}$insertspc${CClear}${CRed}${3} [%.${barch}s%.${barsp}s]${CClear} ${CWhite}${InvDkGray}$AltNum ${4} / ${progr}%%\r${CClear}" "$barchars" "$barspaces"
fi
elif [ "$5" == "Reverse" ]; then
if [ $progr -le 35 ]; then
if [ $progr -le 15 ]; then
printf "${InvRed}${CWhite}$insertspc${CClear}${CRed}${3} [%.${barch}s%.${barsp}s]${CClear} ${CWhite}${InvDkGray}$AltNum ${4} / ${progr}%%\r${CClear}" "$barchars" "$barspaces"
elif [ $progr -gt 35 ] && [ $progr -le 85 ]; then
elif [ $progr -gt 15 ] && [ $progr -le 40 ]; then
printf "${InvYellow}${CBlack}$insertspc${CClear}${CYellow}${3} [%.${barch}s%.${barsp}s]${CClear} ${CWhite}${InvDkGray}$AltNum ${4} / ${progr}%%\r${CClear}" "$barchars" "$barspaces"
else
printf "${InvGreen}${CWhite}$insertspc${CClear}${CGreen}${3} [%.${barch}s%.${barsp}s]${CClear} ${CWhite}${InvDkGray}$AltNum ${4} / ${progr}%%\r${CClear}" "$barchars" "$barspaces"
Expand Down
4 changes: 2 additions & 2 deletions rtrmon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ progressbar() {
printf "${InvRed}${CWhite}$insertspc${CClear}${CRed}${3} [%.${barch}s%.${barsp}s]${CClear} ${CWhite}${InvDkGray}$AltNum ${4} / ${progr}%%\r${CClear}" "$barchars" "$barspaces"
fi
elif [ "$5" == "Reverse" ]; then
if [ $progr -le 35 ]; then
if [ $progr -le 15 ]; then
printf "${InvRed}${CWhite}$insertspc${CClear}${CRed}${3} [%.${barch}s%.${barsp}s]${CClear} ${CWhite}${InvDkGray}$AltNum ${4} / ${progr}%%\r${CClear}" "$barchars" "$barspaces"
elif [ $progr -gt 35 ] && [ $progr -le 85 ]; then
elif [ $progr -gt 15 ] && [ $progr -le 40 ]; then
printf "${InvYellow}${CBlack}$insertspc${CClear}${CYellow}${3} [%.${barch}s%.${barsp}s]${CClear} ${CWhite}${InvDkGray}$AltNum ${4} / ${progr}%%\r${CClear}" "$barchars" "$barspaces"
else
printf "${InvGreen}${CWhite}$insertspc${CClear}${CGreen}${3} [%.${barch}s%.${barsp}s]${CClear} ${CWhite}${InvDkGray}$AltNum ${4} / ${progr}%%\r${CClear}" "$barchars" "$barspaces"
Expand Down

0 comments on commit b5e0f0b

Please sign in to comment.