Permalink
Browse files

tweak to make them all happier ;)

  • Loading branch information...
1 parent eaa7f8f commit df7df4e26435c358e937c583b966779c87931712 @rande rande committed Apr 12, 2012
Showing with 11 additions and 9 deletions.
  1. +1 −1 Command/HealthCheckCommand.php
  2. +10 −4 Resources/public/javascript/app.js
  3. +0 −4 Result/CheckResult.php
@@ -69,6 +69,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln('done!');
// return a negative value if an error occurs
- return $error ? -1 : 0;
+ return $error ? 1 : 0;
}
}
@@ -12,13 +12,19 @@ Health.Check = Em.Object.extend({
service_id: null,
icon: function() {
- if (this.status_name == "check_result_ok") {
+ if (this.status_name === "check_result_ok") {
return "icon-ok-sign";
- } else if (this.status_name == "check_result_warning") {
+ }
+
+ if (this.status_name === "check_result_warning") {
return "icon-warning-sign";
- } else if (this.status_name == "check_result_critical") {
+ }
+
+ if (this.status_name === "check_result_critical") {
return "icon-fire";
- } else if (this.status_name == "check_result_unknown") {
+ }
+
+ if (this.status_name === "check_result_unknown") {
return "icon-question-sign";
}
View
@@ -9,10 +9,6 @@ class CheckResult
const CRITICAL = 2;
const UNKNOWN = 3;
- # BC
- const SUCCESS = 0;
- const FAILURE = 2;
-
protected $checkName;
protected $message;
protected $status;

0 comments on commit df7df4e

Please sign in to comment.