custom asyncForEach() is gone

This commit is contained in:
Johannes Zellner
2020-06-03 23:17:06 +02:00
parent b524da23d5
commit 18ac61e8ab
8 changed files with 28 additions and 43 deletions

View File

@@ -1,8 +1,8 @@
'use strict';
/* global angular:false */
/* global $:false */
/* global asyncForEach */
/* global angular */
/* global $ */
/* global async */
/* global Chart */
angular.module('Application').controller('SystemController', ['$scope', '$location', '$timeout', 'Client', function ($scope, $location, $timeout, Client) {
@@ -189,7 +189,7 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
$scope.disks.disks = result.disks; // [ { filesystem, type, size, used, available, capacity, mountpoint }]
// render data of each disk
asyncForEach(result.disks, function (disk, iteratorCallback) {
async.eachSeries(result.disks, function (disk, iteratorCallback) {
// /dev/sda1 -> sda1
// /dev/mapper/foo -> mapper_foo (see #348)
var diskName = disk.filesystem.slice(disk.filesystem.indexOf('/', 1) + 1);