From bffd4d7cadf49424469de0b35bff851dc0984903 Mon Sep 17 00:00:00 2001 From: kyg516 Date: Sun, 18 Sep 2016 13:04:03 +0900 Subject: [PATCH] Add volumes --- app/controllers/volume_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/volume_controller.rb b/app/controllers/volume_controller.rb index 88d2d4f..8b83545 100644 --- a/app/controllers/volume_controller.rb +++ b/app/controllers/volume_controller.rb @@ -1,6 +1,7 @@ class VolumeController < ApplicationController def index + @volumes = Array.new file_directory("/mnt") get_conf info = get_volume_info.split("\n") @@ -12,7 +13,6 @@ class VolumeController < ApplicationController end def parse_info(info) - @volumes = Array.new volume = Hash.new df = get_df info << "\n"