mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
parent
f6f85f1d2c
commit
ba3af8fb64
@ -367,6 +367,7 @@ module CLIHelper
|
||||
# @param options [Hash] Object with CLI user options
|
||||
def top(options = {})
|
||||
delay = options[:delay] || 1
|
||||
top = false
|
||||
|
||||
begin
|
||||
loop do
|
||||
@ -375,9 +376,11 @@ module CLIHelper
|
||||
CLIHelper.scr_cls
|
||||
CLIHelper.scr_move(0, 0)
|
||||
|
||||
show(data, options, true)
|
||||
show(data, options, top)
|
||||
|
||||
sleep delay
|
||||
|
||||
top = true
|
||||
end
|
||||
rescue SystemExit, Interrupt, StandardError => e
|
||||
CLIHelper.fail(e.message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user