File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ my $exit_code = 0;
78
78
# Returns timeout as integer
79
79
# undef if unknown
80
80
sub _get_action_timeout {
81
- my $timeout = $ENV {' OCF_RESKEY_CRM_meta_timeout' };
81
+ my $timeout = $ENV {' OCF_RESKEY_CRM_meta_timeout' } / 1000 ;
82
82
83
83
ocf_log( ' debug' , sprintf ' _get_action_timeout: known timeout: %s' ,
84
84
defined $timeout ? $timeout : ' undef' );
@@ -392,7 +392,7 @@ sub _create_recovery_conf {
392
392
}
393
393
394
394
# Use pg_controldata to check the state of the PostgreSQL server. This
395
- # function returns codes depending on this state, so we can find wether the
395
+ # function returns codes depending on this state, so we can find whether the
396
396
# instance is a primary or a secondary, or use it to detect any inconsistency
397
397
# that could indicate the instance has crashed.
398
398
#
@@ -1037,7 +1037,7 @@ sub pgsql_validate_all {
1037
1037
1038
1038
# check recovery template
1039
1039
if ( ! -f $recovery_tpl ) {
1040
- ocf_log( ' crit' , sprintf ' Recovery template file "%s" does not exists ' ,
1040
+ ocf_log( ' crit' , sprintf ' Recovery template file "%s" does not exist ' ,
1041
1041
$recovery_tpl );
1042
1042
exit $OCF_ERR_ARGS ;
1043
1043
}
You can’t perform that action at this time.
0 commit comments