summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/os/os.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 14:45:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 14:48:03 +0000
commite55403ed71282d7bfd8b56df219de3c28a8af064 (patch)
tree524889e5becb81643bf8741e3082955dca076f09 /src/libnetdata/os/os.c
parentReleasing debian version 1.47.5-1. (diff)
downloadnetdata-e55403ed71282d7bfd8b56df219de3c28a8af064.tar.xz
netdata-e55403ed71282d7bfd8b56df219de3c28a8af064.zip
Merging upstream version 2.0.3+dfsg:
- does not include dygraphs anymore (Closes: #923993) - does not include pako anymore (Closes: #1042533) - does not include dashboard binaries anymore (Closes: #1045145) Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/libnetdata/os/os.c')
-rw-r--r--src/libnetdata/os/os.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libnetdata/os/os.c b/src/libnetdata/os/os.c
index 1caa25f85..780801fa1 100644
--- a/src/libnetdata/os/os.c
+++ b/src/libnetdata/os/os.c
@@ -6,12 +6,13 @@
// system functions
// to retrieve settings of the system
-unsigned int system_hz;
+unsigned int system_hz = 100;
void os_get_system_HZ(void) {
long ticks;
if ((ticks = sysconf(_SC_CLK_TCK)) == -1) {
netdata_log_error("Cannot get system clock ticks");
+ ticks = 100;
}
system_hz = (unsigned int) ticks;