Commit 785a316d authored by Paul Asmuth's avatar Paul Asmuth
Browse files

fnordmetric-ui: better values_in_fetch_next

parent eda9bd52
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -9518,9 +9518,12 @@ var FnordMetric = (function(pre){
    if (enterprise) {
      var all_resp = {};

      function values_in_fetch_next() {
      function values_in_fetch_next(gauges) {
        var this_resp = gauges.shift();

        if (typeof this_resp == 'undefined')
          return;

        execute(
          "VALUESIN " + this_resp + " " + since + " " + until,
          function(resp) {
@@ -9539,12 +9542,12 @@ var FnordMetric = (function(pre){
            if (gauges.length == 0)
              callback.apply(FnordMetric.util.zeroFill(all_resp));
            else
              values_in_fetch_next();
              values_in_fetch_next(gauges);
          }
        );
      }

      values_in_fetch_next();
      values_in_fetch_next(gauges);
    }

    else {
+6 −3
Original line number Diff line number Diff line
@@ -135,9 +135,12 @@ var FnordMetric = (function(pre){
    if (enterprise) {
      var all_resp = {};

      function values_in_fetch_next() {
      function values_in_fetch_next(gauges) {
        var this_resp = gauges.shift();

        if (typeof this_resp == 'undefined')
          return;

        execute(
          "VALUESIN " + this_resp + " " + since + " " + until,
          function(resp) {
@@ -156,12 +159,12 @@ var FnordMetric = (function(pre){
            if (gauges.length == 0)
              callback.apply(FnordMetric.util.zeroFill(all_resp));
            else
              values_in_fetch_next();
              values_in_fetch_next(gauges);
          }
        );
      }

      values_in_fetch_next();
      values_in_fetch_next(gauges);
    }

    else {