Revision 3d3cc4fa src/cli/one_helper/oneacct_helper.rb

View differences:

src/cli/one_helper/oneacct_helper.rb
15 15
#--------------------------------------------------------------------------- #
16 16

  
17 17
require 'one_helper'
18
require 'optparse/time'
18 19

  
19 20
class AcctHelper < OpenNebulaHelper::OneHelper
20 21
    START_TIME = {
......
22 23
        :short  => "-s TIME",
23 24
        :large  => "--start TIME" ,
24 25
        :description => "Start date and time to take into account",
25
        :format => String # TODO Time
26
        :format => Time
26 27
    }
27 28

  
28 29
    END_TIME = {
......
30 31
        :short  => "-e TIME",
31 32
        :large  => "--end TIME" ,
32 33
        :description => "End date and time",
33
        :format => String # TODO Time
34
        :format => Time
34 35
    }
35 36

  
36 37
    USERFILTER = {
......
144 145
        default :VID, :HOSTNAME, :REASON, :START_TIME, :END_TIME, :MEMORY, :CPU, :NET_RX, :NET_TX
145 146
    end
146 147

  
147
    def self.print_start_enc_time_header(start_time, end_time)
148
    def self.print_start_end_time_header(start_time, end_time)
148 149
        print "Showing active history records from "
149 150

  
150 151
        CLIHelper.scr_bold

Also available in: Unified diff