mirror of
https://github.com/bjango/istatserverlinux.git
synced 2025-10-25 08:50:46 +00:00
Fixed issue with OpenSSL 1.1+ (#4)
Process monitoring changes for Open/Net/Dragonfly BSD Version bump to 3.02 (104)
This commit is contained in:
@@ -218,7 +218,7 @@ void StatsProcesses::update(long long sampleID, double totalTicks)
|
||||
#elif defined(PROCESSES_KVM_DRAGONFLY)
|
||||
p = kvm_getprocs(kd, KERN_PROC_ALL, sizeof(kinfo_proc), &n_processes);
|
||||
#else
|
||||
p = kvm_getprocs(kd, KERN_PROC_ALL, 0, &n_processes);
|
||||
p = kvm_getprocs(kd, KERN_PROC_PROC, 0, &n_processes);
|
||||
#endif
|
||||
|
||||
for (i = 0; i < n_processes; i++) {
|
||||
@@ -227,7 +227,11 @@ void StatsProcesses::update(long long sampleID, double totalTicks)
|
||||
#elif defined(PROCESSES_KVM_OPENBSD) || defined(PROCESSES_KVM_NETBSD)
|
||||
if (!((p[i].p_flag & P_SYSTEM)) && p[i].p_comm != NULL) {
|
||||
#else
|
||||
if (!((p[i].ki_flag & P_SYSTEM)) && p[i].ki_comm != NULL) {
|
||||
if (p[i].ki_stat != 0) {
|
||||
#ifdef TDF_IDLETD
|
||||
if(p[i].ki_tdflags & TDF_IDLETD)
|
||||
continue;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(PROCESSES_KVM_DRAGONFLY)
|
||||
|
||||
@@ -223,6 +223,7 @@ void StatsSensors::init_dev_cpu()
|
||||
label << "CPU " << x;
|
||||
(*cur).label = label.str();
|
||||
(*cur).method = 2;
|
||||
(*cur).kind = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -254,6 +255,7 @@ void StatsSensors::init_acpi_thermal()
|
||||
label << "Thermal Zone " << x;
|
||||
(*cur).label = label.str();
|
||||
(*cur).method = 4;
|
||||
(*cur).kind = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -314,6 +316,7 @@ void StatsSensors::init_qnap()
|
||||
{
|
||||
(*cur).label = "Temperature";
|
||||
(*cur).method = 3;
|
||||
(*cur).kind = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user