LoginSignup
12
13

More than 5 years have passed since last update.

1秒辺りの転送量を調べる

Last updated at Posted at 2014-11-04

一日あたりを求めるには後は 24 * 60 * 60 して適当にMBとか表示してくれたらええんやけど、めんどくさくなりました。

expr `cat /sys/class/net/eth0/statistics/rx_bytes` / `cat /proc/uptime | cut -d "." -f 1`

意外とストックされたので追記しときますが、現在の1秒辺りの転送量ではなく起動時間から現時点までの1秒辺りの転送量の平均値です。お間違えのなきようよろしくお願いします。

12
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
13