aker-gateway / Aker

SSH bastion/jump host/jumpserver
Other
566 stars 81 forks source link

Custom delta in session replay #56

Open ghost opened 6 years ago

ghost commented 6 years ago

Sometimes there are huge gaps when nothing is happening during session replay. Lets add new flag --delta or --delay so user can specify delay in seconds between steps during akerctl --replay.

anazmy commented 6 years ago

I have this in mind:

ghost commented 6 years ago

Aha, just like media player. Cool, I like it:) We could bind Up and Down arrows to define playback speed - no parameter needed but we could have it anyway - maybe somebody will find it useful.

anazmy commented 6 years ago

Yeah could be that too, just need to think it through, specially making the akerctl aware of time in 2x speed

ghost commented 6 years ago

See this: https://github.com/g----/Aker/blob/replay-delay/aker/commands.py#L58 It is just quick version supporting --delay flag. But increasing speed means just using multiplier instead of constant.

Bigger problem is to actually bind keystrokes and change variable values in that for loop. That will take some coding:) But I have some idea.

anazmy commented 6 years ago

Yes I noticed that one ;-) thanks for that.

I gotta wrap up some work and work on these stuff along with scale testing