Explorar o código

added highestCurrent function (Fixes #57)

Torkel Ödegaard %!s(int64=12) %!d(string=hai) anos
pai
achega
aea4b37760
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/app/services/graphite/gfunc.js

+ 7 - 0
src/app/services/graphite/gfunc.js

@@ -187,6 +187,13 @@ function (_) {
     defaultParams: [25]
   });
 
+  addFuncDef({
+    name: 'highestCurrent',
+    category: categories.Filter,
+    params: [ { name: "count", type: "int" } ],
+    defaultParams: [5]
+  });
+
   _.each(categories, function(funcList, catName) {
     categories[catName] = _.sortBy(funcList, 'name');
   });