What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-25 22:51:03
tcp traffic analysis linux command line mb per second
#!/usr/bin/perl # traffic analysis script using tcpdump use strict; use warnings; use Time::HiRes; my $reporting_interval = 10.0; # seconds my $bytes_this_interval = 0; my $start_time = [Time::HiRes::gettimeofday()]; STDOUT->autoflush(1); while (<... Add solution -
PHP 2021-09-13 20:49:03
php sprintf
There are already some comments on using sprintf to force leading leading zeros but the examples only include integers. I needed leading zeros on floating point numbers and was surprised that it didn't work as expected. Example: <?php sprintf('%02d',... Add solution
Best helpers
Daniel Cook
+5
Czlsws
+5
Shahruz Raad
+5
Horse
+5
Csandreas1
+5
SOUMEN
+5
Vy32
+5
Anugram
+5
ImMathan
+5
Joyo
+5
Huggy Buggy
+5