Skip to content

Instantly share code, notes, and snippets.

@lukassup
Created October 20, 2016 19:58
Show Gist options
  • Save lukassup/3d6feea037d384895cf7f1bf3bf63cf2 to your computer and use it in GitHub Desktop.
Save lukassup/3d6feea037d384895cf7f1bf3bf63cf2 to your computer and use it in GitHub Desktop.
root@twopi ~log/remote/router.isp # grep -r '\bMissed\b' . | wc -l
350
root@twopi ~log/remote/router.isp # ls | wc -l
85
root@twopi ~log/remote/router.isp # python
Python 3.5.2 (default, Jul 3 2016, 09:10:18)
[GCC 6.1.1 20160602] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> total = 85*24*60
>>> down = 350
>>> up = 1 - down / total
>>> up * 100
99.7140522875817
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment