Net measures ネット対策

Measure=NetIn measures incoming (download) network traffic.
Measure=NetOut measures outgoing (upload) network traffic.
Measure=NetTotal measures both incoming and outgoing network traffic.Measure=NetIn着信(ダウンロード)ネットワークトラフィックを測定します。
Measure=NetOut発信(アップロード)ネットワークトラフィックを測定します。
Measure=NetTotal着信と発信の両方のネットワークトラフィックを測定します。

Net measures will have a value in bytes per second.正味のメジャーは1秒あたりのバイト数で値を持ちます。

Bits and Bytesビットとバイト

The Net measures internally measure the traffic across the NIC (Network Interface Controller) in bits per second. The measures automatically divide both this internal measurement and any MinValue or MaxValue options by 8, (there are 8 bits in a byte) in order to use and display the values as bytes in measures and meters. This can be changed with the UseBits option on the measure.

Note that this means that any MinValue and MaxValue options on the measures, used to support a percentage in meters, should be set by you in bits, not bytes. Rainmeter itself will do the conversion to bytes automatically when the value(s) are used.ネット測定は、内部的にNIC(ネットワークインターフェイスコントローラ)を通過するトラフィックをビット/秒で測定します。測定は自動的にこの内部測定および任意の両方分割MinValueプロパティまたはMaxValueを使用して測定し、メートル単位のバイトとして値を表示するために(8ビットバイトである)、8によりオプション。これは、メジャーのUseBitsオプションで変更できます。

なお、これはどんなことを意味していることMinValueプロパティMaxValueをサポートするために使用される措置のオプション、割合をメートルでは、中にあなたによって設定されるべきビット、バイトではありません。値が使用されると、Rainmeter自身が自動的にバイトに変換します。

Per Second毎秒

The measured value is the number of bytes per second, factored by the total update rate of the measure, as defined by the Update option for the skin and any UpdateDivider option on the measure. Since the usual display of network traffic is in bytes per second, it is advisable to either set Update=1000 in the [Rainmeter] section of the skin, or add UpdateDivider options to NetIn / NetOut / NetTotal measures so they are updated once a second. Updating these measures at a rate other than once a second will return results that are confusing at best.測定値が合計によって因数分解、秒あたりのバイト数である更新レートによって定義されるように、測定値のUpdateスキンおよび任意のオプションUpdateDividerの尺度でオプション。通常のネットワークトラフィックの表示は1 あたりのバイト数なのでUpdate=1000、スキンの[Rainmeter]セクションで設定するか、NetIn / NetOut / NetTotalメジャーにUpdateDividerオプションを追加して1秒に1回更新することをお勧めします。1秒に1回以外の割合でこれらの指標を更新すると、せいぜい混乱を招く結果が返されます。

LAN and WANLANとWAN

The measured value is simply the network traffic in and out of the network interface controller (NIC) of the computer running the skin. If the computer is on a local network through a router (LAN), the traffic will include all interaction between the computer and both the router and any other devices on the LAN. It will not include traffic directly to and from other devices and the internet (WAN), and so cannot be used to determine the amount of internet traffic.測定値は、単にスキンを実行しているコンピュータのネットワークインターフェイスコントローラ(NIC)に出入りするネットワークトラフィックです。コンピュータがルーター(LAN)を介したローカルネットワーク上にある場合、トラフィックには、コンピュータとルーターおよびLAN上の他のデバイスとの間のすべての対話が含まれます。他のデバイスとインターネット(WAN)との間の直接のトラフィックは含まれないため、インターネットトラフィックの量を判断するために使用することはできません。

You just cannot isolate traffic between your computer and another devices on the local network (LAN), from traffic coming from or going to the internet (WAN), nor can you ever know what some other device on your LAN is doing with the internet. If you are on some kind of "metered" connection to the internet, do not try to use these measures to manage that, other than in the most "approximate" kind of way.コンピュータとローカルネットワーク(LAN)上の他のデバイスとの間のトラフィックを、インターネット(WAN)から送受信されるトラフィックから分離することはできません。また、LAN上の他のデバイスがインターネットに対して行っていることを知ることもできません。あなたがインターネットへの何らかの「計量」接続をしているなら、それを管理するためにこれらの手段を使わないでください、最も「おおよその」種類の方法以外で。

Optionsオプション

General measure options一般的な測定オプション

All general measure options are valid.一般的な測定オプションはすべて有効です。

Interface Default: 0Interface デフォルト: 0

Identity of the network interface controller (NIC) to measure.

This can be defined in one of several ways:

  • The string value Best, which will automatically detect the active interface.Bestアクティブなインターフェースを自動的に検出するストリング値。
  • The name of the network interface controller. For example, Qualcomm AR938x Wireless Network Adapter.ネットワークインタフェースコントローラの名前。たとえば、Qualcomm AR938x Wireless Network Adapter
  • The index number of the network interface controller. If set to 0, (default) all interfaces are measured.ネットワークインタフェースコントローラのインデックス番号。に設定すると0、(デフォルト)すべてのインターフェースが測定されます。

Example: Interface=Best例: Interface=Best

Notes:ノート:

When the option is set to Best, the function will select a "wired" network connection in preference to a "wireless" one, if both are active.このオプションがに設定されているBestと、両方がアクティブの場合、この機能は「無線」接続よりも「有線」ネットワーク接続を選択します。

When the option is set to Best, DynamicVariables=1 must be set on the measure if you want it to automatically react to changes in the active interface. This should be done if for instance you have a laptop or other computer that you switch between wired and wireless connections.オプションに設定されている場合BestDynamicVariables=1あなたはそれが自動的にアクティブなインタフェースの変化に反応するようにしたい場合は測定に設定する必要があります。これは、たとえば、有線接続と無線接続を切り替えるラップトップコンピュータまたはその他のコンピュータがある場合に実行する必要があります。

Cumulative Default: 0Cumulative デフォルト: 0

If set to 1, measures the cumulative network traffic. This can be used to measure the cumulative NetIn, NetOut or NetTotal traffic through a NIC during a certain interval.に設定する1と、累積ネットワークトラフィックを測定します。これを使用して、特定の間隔中にNICを通過する累積NetIn、NetOut、またはNetTotalトラフィックを測定できます。

Note: The network traffic cumulative statistics are persistent and stored when Rainmeter is exited. They can be reset by either using the "Reset statistics" button in the "Settings" tab of the Manage interface, or by using the !ResetStats bang in a skin.注:ネットワークトラフィックの累積統計は永続的で、Rainmeterが終了したときに保存されます。それらは、Manageインターフェースの[Settings]タブにある[ Reset statistics]ボタンを使用するか、またはスキンの!ResetStats bang を使用してリセットできます。

UseBits Default: 0UseBits デフォルト: 0

If set to 1, the value of the measure is returned in bits per second, rather than the default bytes per second.に設定する1と、メジャーの値はデフォルトの1秒あたりのバイト数ではなく、1秒あたりのビット数で返されます。

Note: If UseBits is set to 1 then any MaxValue derived or set on the measure will also be calculated in bits, for use in percentages in meters that require them.注: UseBitsは任意次いで、1に設定されている場合はMaxValueを派生又は尺度に設定され、また、それらを必要メートルにおけるパーセンテージでの使用のために、ビットで計算されます。

Deprecated Options廃止予定のオプション

NetInSpeed Number of Bytes per secondNetInSpeed 1秒あたりのバイト数

This option replicates the behavior of setting MaxValue on the measure. There is no reason to prefer this over MaxValue.このオプションは、メジャーにMaxValueを設定する動作を複製します。MaxValueよりもこれを好む理由はありません。

While this option does not automatically divide the value by 8 to convert from bits to bytes, and is just set with bytes to start with, most sites that allow you to measure your total bandwidth, like speedtest.net, will return values in bits per second, and it is easier to just use those values in bits in MaxValue and let Rainmeter do the math.このオプションはビットからバイトに変換するために自動的に値を8で割るのではなく、単にバイト数で設定されますが、speedtest.netのように総帯域幅を測定できるサイトのほとんどはビットあたりの値を返します。次に、MaxValueのビット単位でこれらの値を使用して、Rainmeterに計算を実行させる方が簡単です。

NetOutSpeed Number of Bytes per secondNetOutSpeed 1秒あたりのバイト数

This option replicates the behavior of setting MaxValue on the measure. There is no reason to prefer this over MaxValue.このオプションは、メジャーにMaxValueを設定する動作を複製します。MaxValueよりもこれを好む理由はありません。

While this option does not automatically divide the value by 8 to convert from bits to bytes, and is just set with bytes to start with, most sites that allow you to measure your total bandwidth, like speedtest.net, will return values in bits per second, and it is easier to just use those values in bits in MaxValue and let Rainmeter do the math.このオプションはビットからバイトに変換するために自動的に値を8で割るのではなく、単にバイト数で設定されますが、speedtest.netのように総帯域幅を測定できるサイトのほとんどはビットあたりの値を返します。次に、MaxValueのビット単位でこれらの値を使用して、Rainmeterに計算を実行させる方が簡単です。

Example

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,255

[MeasureNetIn]
Measure=NetIn

[MeasureNetOut]
Measure=NetOut

[MeterText]
Meter=String
MeasureName=MeasureNetIn
MeasureName2=MeasureNetOut
X=5
Y=5
W=100
H=20
FontColor=255,255,255,255
NumOfDecimals=1
AutoScale=1
Text="In: %1B, Out: %2B"

A more detailed example and explanation can be found at Network Skin.より詳細な例と説明はNetwork Skinにあります。

関連記事

スポンサーリンク

JISコードでstrlenの文字数が合わない(目視の文字数とstrlenの文字数が異なる)

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る