{"id":122111,"date":"2020-06-22T18:16:50","date_gmt":"2020-06-22T10:16:50","guid":{"rendered":"http:\/\/4563.org\/?p=122111"},"modified":"2020-06-22T18:16:50","modified_gmt":"2020-06-22T10:16:50","slug":"%e8%bf%90%e8%a1%8c%e8%84%9a%e6%9c%ac%e9%81%87%e5%88%b0%e8%bf%99%e4%b8%aa%e9%94%99%e8%af%af%ef%bc%8c%e6%80%8e%e4%b9%88%e6%90%9e%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=122111","title":{"rendered":"\u8fd0\u884c\u811a\u672c\u9047\u5230\u8fd9\u4e2a\u9519\u8bef\uff0c\u600e\u4e48\u641e\uff1f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>shuni9<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u8fd0\u884c\u811a\u672c\u9047\u5230\u8fd9\u4e2a\u9519\u8bef\uff0c\u600e\u4e48\u641e\uff1f<\/h3>\n<p>  \t\tbash \u811a\u672c\u662f\u8fd9\u4e2a\uff1a<\/p>\n<p>  &nbsp; &nbsp; # Network traffic<br \/>  &nbsp; &nbsp; NET=($(grep &quot;:&quot; \/proc\/net\/dev | grep -v -e &quot;lo&quot; -e &quot;tun&quot; | awk &#8216;{a+=$2}{b+=$10}END{print a,b}&#8217;))<br \/>  &nbsp; &nbsp; NetRx=&quot;${NET}&quot;<br \/>  &nbsp; &nbsp; NetTx=&quot;${NET}&quot;<br \/>  &nbsp; &nbsp; if [ &quot;$PREV_NetRx&quot; == &quot;&quot; ]; then<br \/>  &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;PREV_NetRx=&quot;$NetRx&quot;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;PREV_NetTx=&quot;$NetTx&quot;<br \/>  &nbsp; &nbsp; fi<br \/>  &nbsp; &nbsp; let &quot;SpeedRx=($NetRx-$PREV_NetRx)\/10&quot;<br \/>  &nbsp; &nbsp; let &quot;SpeedTx=($NetTx-$PREV_NetTx)\/10&quot;<\/p>\n<p>  \u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\uff1a<\/p>\n<p>  19: let: SpeedRx=(1.97689e+13-1.97689e+13)\/2: syntax error: invalid arithmetic operator (error token is &quot;.97689e+13-1.97689e+13)\/2&quot;)<\/p>\n<p>  \u5982\u4f55\u5f04\uff0c\u5927\u4f6c\u6307\u5bfc\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>youhei<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t19\u884c \u8bed\u6cd5\u9519\u8bef\uff1a\u65e0\u6548\u7684\u7b97\u672f\u8fd0\u7b97\u7b26\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u9c7c\u8dc3<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8bed\u6cd5\u9519\u8bef\u554a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>501ari5<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t$NetRx \u548c $PREV_NetRx \u90a3\u8fb9&#8230;&#8230; \u90fd\u52a0\u4e0a\u62ec\u53f7\u8bd5\u8bd5\u770b\uff1f<\/p>\n<p>  \u4f8b\u5982\uff1a ($NetRx) \u548c ($PREV_NetRx)\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>shuni9<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t501ari5 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-22 18:19<br \/>  $NetRx \u548c $PREV_NetRx \u90a3\u8fb9&#8230;&#8230; \u90fd\u52a0\u4e0a\u62ec\u53f7\u8bd5\u8bd5\u770b\uff1f<\/p>\n<p>  \u4f8b\u5982\uff1a ($NetRx) \u548c ($PREV_NetRx) &#8230;<\/p>\n<p> \u52a0\u4e0a\u4e86\uff0c\u4e5f\u662f\u76f8\u540c\u7684\u9519\u8bef<\/p>\n<p>  \u597d\u50cf\u662f\u56e0\u4e3a\u6570\u503c\u592a\u5927\u4e86\uff0c\u8d85\u8fc7\u8303\u56f4\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>501ari5<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tshuni9 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-22 18:34<br \/>  \u52a0\u4e0a\u4e86\uff0c\u4e5f\u662f\u76f8\u540c\u7684\u9519\u8bef<\/p>\n<p> \u8bd5\u8bd5\u770b\u53d6\u6a21\uff08Modulo\uff09\u518d\u8f93\u51fa\u6570\u503c\uff1f\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>shuni9 \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u8fd0\u884c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/122111"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=122111"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/122111\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=122111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=122111"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=122111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}