| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/misc/hxtools/files/ |
Upload File : |
--- suser/sysinfo.c.orig 2020-07-12 09:44:16 UTC
+++ suser/sysinfo.c
@@ -48,9 +48,9 @@ struct sy_block {
unsigned int display_width, display_height;
};
-static const char *sy_osrelease_file = "/etc/os-release";
-static const char *sy_cpuinfo_file = "/proc/cpuinfo";
-static const char sysfs_cpu_dir[] = "/sys/devices/system/cpu";
+static const char *sy_osrelease_file = "/var/run/os-release";
+static const char *sy_cpuinfo_file = "/compat/linux/proc/cpuinfo";
+static const char sysfs_cpu_dir[] = "/compat/linux/sys/devices/system/cpu";
static unsigned int sy_verbose;
static void sy_num_cpu_threads(struct sy_block *sib)
@@ -190,7 +190,7 @@ static void sy_loadavg(struct sy_block *sib)
{
double avg5, avg15;
unsigned int run;
- FILE *fp = fopen("/proc/loadavg", "r");
+ FILE *fp = fopen("/compat/linux/proc/loadavg", "r");
if (fp == NULL)
return;
@@ -202,7 +202,7 @@ static void sy_loadavg(struct sy_block *sib)
static void sy_memory(struct sy_block *sib)
{
unsigned long long mem_free = 0, mem_buf = 0, mem_cac = 0, mem_shm = 0;
- FILE *fp = fopen("/proc/meminfo", "r");
+ FILE *fp = fopen("/compat/linux/proc/meminfo", "r");
hxmc_t *line = NULL;
char *key, *value;