netdata_patch_1_2_2: Apply patch to run on Debian 10

This commit is contained in:
thiagoftsm
2023-07-12 14:17:23 +00:00
parent 360a2fd909
commit d42052959d

View File

@@ -74,6 +74,10 @@ static __u32 get_debian_kernel_version(struct utsname *info)
if (sscanf(p, "Debian %u.%u.%u", &major, &minor, &patch) != 3)
return 0;
// Patch to run on Debian 10
if (major == 4 && minor == 19 && patch > 255)
return KERNEL_VERSION(major, minor, 255);
return KERNEL_VERSION(major, minor, patch);
}