Add epoch

This commit is contained in:
2026-04-28 10:33:23 -05:00
parent 19f2a2c616
commit 73e7d6c7f3
17 changed files with 555 additions and 9 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ bool_t networkLinuxIsConnected() {
// Check if any non loopback interfaces have running flag set.
bool_t connected = false;
for(ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) {
if (!ifa->ifa_name || !ifa->ifa_flags) continue;
if(!ifa->ifa_name || !ifa->ifa_flags) continue;
// Skip loopback (localhost)
if(ifa->ifa_flags & IFF_LOOPBACK) continue;
@@ -64,7 +64,7 @@ networkinfo_t networkLinuxGetInfo() {
// Find the first non-loopback interface with an IP address
for(ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) {
if (!ifa->ifa_name || !ifa->ifa_flags) continue;
if(!ifa->ifa_name || !ifa->ifa_flags) continue;
// Skip loopback (localhost)
if(ifa->ifa_flags & IFF_LOOPBACK) continue;