14196: Multi-site search works with v2 tokens.
[arvados.git] / apps / workbench / app / assets / javascripts / event_log.js
index c081492a814d0dc6c0e8ff2371c0d88f67c0ac99..e576ba97a35785ec72dd4c68c9b7dd69e6cff099 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
 /*
  * This js establishes a websockets connection with the API Server.
  */
@@ -56,36 +60,3 @@ $(document).on('ajax:complete ready', function() {
         subscribeToEventLog();
     }
 });
-
-
-function processLogLineForChart( logLine, jobGraphSeries, jobGraphData ) {
-    var match = logLine.match(/(.*)crunchstat:(.*)-- interval(.*)/);
-    if( match ) {
-        var series = match[2].trim().split(' ')[0];
-        if( $.inArray( series, jobGraphSeries) < 0 ) {
-            jobGraphSeries.push(series);
-        }
-        var intervalData = match[3].trim().split(' ');
-        var dt = parseFloat(intervalData[0]);
-        var dsum = 0.0;
-        for(var i=2; i < intervalData.length; i += 2 ) {
-            dsum += parseFloat(intervalData[i]);
-        }
-        var datum = (dsum/dt).toFixed(4);
-        var preamble = match[1].trim().split(' ');
-        var timestamp = preamble[0].replace('_','T');
-        var found = false;
-        for( var i=0; i < jobGraphData.length; i++ ) {
-            if( jobGraphData[i]['t'] == timestamp ) {
-                jobGraphData[i][series] = datum;
-                found = true;
-                break;
-            }
-        }
-        if( !found ){
-            var entry = { 't': timestamp };
-            entry[series] = datum;
-            jobGraphData.push( entry );
-        }
-    }
-}