Skip to content

Commit

Permalink
Allow more than 10 disks
Browse files Browse the repository at this point in the history
  • Loading branch information
Squidly271 committed Jan 26, 2020
1 parent e173e6b commit 102e722
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
Binary file added archive/ca.turbo-2020.01.26-x86_64-1.txz
Binary file not shown.
9 changes: 6 additions & 3 deletions plugins/ca.turbo.plg
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "ca.turbo">
<!ENTITY author "Andrew Zawadzki">
<!ENTITY version "2019.01.13">
<!ENTITY md5 "a969cc8e7b633e6665a580d934118fa2">
<!ENTITY version "2020.01.26">
<!ENTITY md5 "42f112ba5fdde6e42455189a0c6186fc">
<!ENTITY launch "Settings/Turbo">
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
<!ENTITY github "Squidly271/ca.turbo">
Expand All @@ -13,6 +13,9 @@
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" icon='tachometer'>

<CHANGES>
###2020.01.26
- Fixed: Only max 10 disks were allowed to be spun down

###2019.01.13
- Update Icon

Expand Down Expand Up @@ -106,7 +109,7 @@ The 'post-install' script
echo ""
echo "----------------------------------------------------"
echo " &name; has been installed."
echo " Copyright 2017, Andrew Zawadzki"
echo " Copyright 2017-2020, Andrew Zawadzki"
echo " Version: &version;"
echo "----------------------------------------------------"
echo ""
Expand Down
17 changes: 10 additions & 7 deletions source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/Turbo.page
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ Title="TurboWrite"
Icon="tachometer"
---
<?
###################################
# #
# CA Automatic Turbo Mode #
# Copyright 2017, Andrew Zawadzki #
# #
###################################
########################################
# #
# CA Automatic Turbo Mode #
# Copyright 2017-2020, Andrew Zawadzki #
# #
########################################

$plugin = "ca.turbo";
require_once("/usr/local/emhttp/plugins/ca.turbo/include/caCredits.php");
Expand Down Expand Up @@ -66,6 +66,9 @@ $(function() {
$(".schedules").change(function() { changeApply(); });
}
});
if ( typeof caPluginUpdateCheck === "function" ) {
caPluginUpdateCheck("ca.turbo.plg",{name:"Auto Turbo Mode"});
}
});

function changeApply() {
Expand Down Expand Up @@ -228,7 +231,7 @@ function killSchedule() {
<dt>Disks Allowed To Be Spun Down Before Invoking Turbo Mode:</dt>
<dd>
<select class='settings' id='maxSpunDown' onchange='changeApply();'>
<?for($i=0; $i <= 10; $i++):?>
<?for($i=0; $i <= $totalDisks; $i++):?>
<?$number = $i == 0 ? "0" : $i?>
<option value="<?=$i?>"><?=$number?></option>
<?endfor;?>
Expand Down

0 comments on commit 102e722

Please sign in to comment.