lib/td/command/sched.rb in td-0.15.7 vs lib/td/command/sched.rb in td-0.15.8
- old
+ new
@@ -254,10 +254,10 @@
end
client = get_client
begin
- history = client.history(name, skip, skip+max-1)
+ history = client.history(name, skip, skip+max)
rescue NotFoundError
cmd_debug_error $!
$stderr.puts "Schedule '#{name}' does not exist."
$stderr.puts "Use '#{$prog} " + Config.cl_options_string + "sched:list' to show list of the schedules."
exit 1