Skip to content

safe_sleep function... #1673

@mathieu-aubin

Description

@mathieu-aubin

Describe the bug
Seems like the function does achieve correct sleep times when neother sleep nor ping are present

i have taken the liberty of writing a little script showing the effects of the current code and a suggestion on how to essentially fix, under recent bash version, using SECONDS bash internal timer

the script i wrote can be found here https://0x0.st/oXL1.txt

Feel free to do whatever with this but as i said, it doesnt seem to work currently (if both ping and sleep are missing) so thats a good enough reasom to either FIX or remove useless code

Thanks!

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions