From f5d4cfcf0a1bb8df38d61adbccebd9dbd0548a07 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 7 Apr 2014 02:42:49 +0200 Subject: [PATCH] Removed non-working delet parts and added comment sharing Cooment sharing is a system that shares comments between newznab sites using tmux and nZEDb sites. --- bin/monitor.php | 19 ++++++------------- start.php | 2 +- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/bin/monitor.php b/bin/monitor.php index 4ae5e4750..9248fd111 100644 --- a/bin/monitor.php +++ b/bin/monitor.php @@ -9,7 +9,7 @@ require_once(dirname(__FILE__)."/../lib/showsleep.php"); require_once(dirname(__FILE__)."/../lib/functions.php"); -$version="0.3r1069"; +$version="0.3r1070"; $db = new DB(); $functions = new Functions(); @@ -1465,22 +1465,15 @@ if ($running == 1){ shell_exec("tmux respawnp -t${tmux_session}:1.2 'echo \"\033[38;5;\"$color\"m\n$panes1[2] Disabled by Max Load\"' 2>&1 1> /dev/null"); } - //run delete parts in pane 1.3 - if (( $maxload >= get_load()) && (( TIME() - $time16 ) >= $delete_timer ) && ( $delete_parts == 1 )) { + //run comment sharing in in pane 1.3 + if (( $maxload >= get_load()) && (( TIME() - $time16 ) >= 600 )) { $color = get_color($colors_start, $colors_end, $colors_exc); $log = writelog($panes1[3]); - shell_exec("tmux respawnp -t${tmux_session}:1.3 'echo \"\033[38;5;\"$color\"m\" && cd $_cj && $_php remove_parts_without_releases.php 2>&1 $log' 2>&1 1> /dev/null"); + shell_exec("tmux respawnp -t${tmux_session}:1.3 'echo \"\033[38;5;\"$color\"m\" && cd $_bin && $_php postprocess_new.php sharing 2>&1 $log' 2>&1 1> /dev/null"); $time16 = TIME(); - } elseif (( $delete_parts == 0 )) { - $color = get_color($colors_start, $colors_end, $colors_exc); - shell_exec("tmux respawnp -t${tmux_session}:1.3 'echo \"\033[38;5;\"$color\"m\n$panes1[3] has been disabled/terminated by Delete Parts\"' 2>&1 1> /dev/null"); - } elseif ( $maxload >= get_load()) { - $color = get_color($colors_start, $colors_end, $colors_exc); - $run_time = relativeTime( $delete_timer + $time16 ); - shell_exec("tmux respawnp -t${tmux_session}:1.3 'echo \"\033[38;5;\"$color\"m\n$panes1[3] will run in T[ $run_time]\"' 2>&1 1> /dev/null"); - } elseif ( $maxload <= get_load()) { + } else if ( $maxload <= get_load()) { $color = get_color($colors_start, $colors_end, $colors_exc); - shell_exec("tmux respawnp -t${tmux_session}:1.3 'echo \"\033[38;5;\"$color\"m\n$panes1[3] Disabled by Max Load\"' 2>&1 1> /dev/null"); + shell_exec("tmux respawnp -t${tmux_session}:1.3 'echo \"\033[38;5;\"$color\"m\n$panes1[3] Sharing Comments Disabled by Max Load\"' 2>&1 1> /dev/null"); } //run update_missing_movie_info parts in pane 1.4 on 15th loop diff --git a/start.php b/start.php index 7bdb0c5d6..12f3bfa2f 100644 --- a/start.php +++ b/start.php @@ -129,7 +129,7 @@ function window_utilities($tmux_session) exec("tmux selectp -t 0;tmux splitw -t $tmux_session:1 -v -p 75 'printf \"\033]2;sphinx\033\"'"); exec("tmux splitw -t $tmux_session:1 -v -p 67 'printf \"\033]2;update_missing_movie_info\033\"'"); exec("tmux selectp -t 0; tmux splitw -t $tmux_session:1 -h -p 50 'printf \"\033]2;update_tv\033\"'"); - exec("tmux selectp -t 2; tmux splitw -t $tmux_session:1 -h -p 50 'printf \"\033]2;delete_parts\033\"'"); + exec("tmux selectp -t 2; tmux splitw -t $tmux_session:1 -h -p 50 'printf \"\033]2;comment_sharing\033\"'"); exec("tmux selectp -t 4; tmux splitw -t $tmux_session:1 -h -p 50 'printf \"\033]2;nzbcount\033\"'"); }