aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [19/50] [abbrv] git commit: Fixed ranges computation.
Date Sat, 05 Apr 2014 00:05:05 GMT
Fixed ranges computation.


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/c8528a84
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/c8528a84
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/c8528a84

Branch: refs/heads/mansu/job_page
Commit: c8528a845375b77debb7717b5d5294b89f773c4c
Parents: 7f7da2a
Author: Suman Karumuri <skarumuri@twitter.com>
Authored: Sat Mar 29 00:10:33 2014 -0700
Committer: Suman Karumuri <skarumuri@twitter.com>
Committed: Sat Mar 29 00:10:33 2014 -0700

----------------------------------------------------------------------
 .../org/apache/aurora/scheduler/http/ui/js/controllers.js    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/c8528a84/src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js
----------------------------------------------------------------------
diff --git a/src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js b/src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js
index 0ffdb18..1a4a828 100644
--- a/src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js
+++ b/src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js
@@ -495,13 +495,13 @@ auroraUIControllers.controller('JobController',
       instanceIds = _.sortBy(instanceIds);
       var result = [];
       var i = 0;
-      var start = 0;
-      var end = 0;
+      var start = instanceIds[i];
+      var end = instanceIds[i];
       while (i < instanceIds.length) {
         if ((i + 1 === instanceIds.length) || (instanceIds[i] + 1 !== instanceIds[i + 1]))
{
-          result.push({start: start, end: i});
+          result.push({start: start, end: instanceIds[i]});
           i++;
-          start = i;
+          start = instanceIds[i];
         } else {
           i++;
         }


Mime
View raw message