mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 02:38:55 +00:00
fixed check-git.py, fixed a fix was killing nzbcount during optimization
This commit is contained in:
+2
-2
@@ -602,7 +602,7 @@ while( $i > 0 )
|
||||
$optimize_run="false";
|
||||
}
|
||||
} elseif ((( TIME() - $time6 >= $array['MYISAM_LARGE'] ) || ( TIME() - $time8 >= $array['INNODB_LARGE'] ) || ( TIME() - $time5 >= $array['INNODB_SMALL'] ) || ( TIME() - $time11 >= $array['MYISAM_SMALL'] )) && ( $array['OPTIMIZE_KILL'] == "true" ) && ( $array['OPTIMIZE'] == "true" )) {
|
||||
for ($g=1; $g<=5; $g++)
|
||||
for ($g=2; $g<=5; $g++)
|
||||
{
|
||||
$color = get_color();
|
||||
shell_exec("$_tmux respawnp -k -t {$array['TMUX_SESSION']}:0.$g 'echo \"\033[38;5;\"$color\"m\n$panes0[$g]\nKilled in prep for \nOptimization\" && date +\"%D %T\" && echo \"This is color #$color\"' 2>&1 1> /dev/null");
|
||||
@@ -636,7 +636,7 @@ while( $i > 0 )
|
||||
$optimize_run="false";
|
||||
}
|
||||
} elseif ((( TIME() - $time6 >= $array['MYISAM_LARGE'] ) || ( TIME() - $time11 >= $array['MYISAM_SMALL'] )) && ( $array['OPTIMIZE_KILL'] == "true" ) && ( $array['OPTIMIZE'] == "true" )) {
|
||||
for ($g=1; $g<=5; $g++)
|
||||
for ($g=2; $g<=5; $g++)
|
||||
{
|
||||
$color = get_color();
|
||||
shell_exec("$_tmux respawnp -k -t {$array['TMUX_SESSION']}:0.$g 'echo \"\033[38;5;\"$color\"m\n$panes0[$g]\nKilled in prep for \nOptimization\" && date +\"%D %T\" && echo \"This is color #$color\"' 2>&1 1> /dev/null");
|
||||
|
||||
@@ -47,7 +47,7 @@ def gitCurrentVersion():
|
||||
return current_commit
|
||||
|
||||
def latestCommit():
|
||||
url = 'https://api.github.com/repos/jonnyboy/newznab-tmux/commits/dev'
|
||||
url = 'https://api.github.com/repos/jonnyboy/newznab-tmux/commits/master'
|
||||
result = urllib2.urlopen(url).read()
|
||||
git = json.JSONDecoder().decode(result)
|
||||
return git['sha']
|
||||
|
||||
Reference in New Issue
Block a user