mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
SysInfo: Use -1 for "no" with INTERNET_CONNECTIVITY and LAN_CONNECTIVITY
This commit is contained in:
parent
acbd0da292
commit
76e562f4f5
@ -393,11 +393,11 @@ PLUGIN_EXPORT double Update(void* data)
|
||||
{
|
||||
const auto connectivity = GetNetworkConnectivity();
|
||||
return (connectivity & NLM_CONNECTIVITY_IPV4_INTERNET ||
|
||||
connectivity & NLM_CONNECTIVITY_IPV6_INTERNET) ? 1.0 : 0.0;
|
||||
connectivity & NLM_CONNECTIVITY_IPV6_INTERNET) ? 1.0 : -1.0;
|
||||
}
|
||||
|
||||
case MEASURE_LAN_CONNECTIVITY:
|
||||
return GetNetworkConnectivity() != NLM_CONNECTIVITY_DISCONNECTED ? 1.0 : 0.0;
|
||||
return GetNetworkConnectivity() != NLM_CONNECTIVITY_DISCONNECTED ? 1.0 : -1.0;
|
||||
|
||||
case MEASURE_WORK_AREA_WIDTH:
|
||||
return (measure->data != -1)
|
||||
|
Loading…
Reference in New Issue
Block a user