summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile33
-rw-r--r--src/fieldstat.cpp1
2 files changed, 1 insertions, 33 deletions
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644
index 9099a6b..0000000
--- a/src/Makefile
+++ /dev/null
@@ -1,33 +0,0 @@
-MAJOR_VER=2
-MINOR_VER=8
-RELEASE_DATE=20181118
-CC = g++
-GCC = gcc
-CFLAGS = -Wall
-CFLAGS += -g -fPIC
-LDFLAGS = -shared
-LDFLAGS += -Wl,--version-script=version.map
-H_DIR = -I../inc
-SOURCES = MESA_field_stat.cpp hdr_histogram.c
-OBJS = $(SOURCES:.c=.o ,.cc=.o)
-TARGET_LIB = libMESA_field_stat2.a
-TARGET_SO = libMESA_field_stat2.so.$(MAJOR_VER).$(MINOR_VER).$(RELEASE_DATE)
-.PHONY: all clean deps
-.cpp.o:
- $(CC) -c $(CFLAGS) -I. $(H_DIR) $<
-.c.o:
- $(GCC) -c $(CFLAGS) -I. $(H_DIR) $<
-all: $(TARGET_LIB) $(TARGET_SO)
-
-deps:
- @$(CC) -MM $(SOURCES) $(CFLAGS)
-
-$(TARGET_LIB): MESA_field_stat.o hdr_histogram.o
- ar -r $@ $^
- cp $(TARGET_LIB) ../lib/
-$(TARGET_SO): MESA_field_stat.o hdr_histogram.o
- $(CC) $(LDFLAGS) -o $(TARGET_SO) $^ -lrt
- cp $(TARGET_SO) ../lib/
-
-clean:
- rm -f $(TARGET_LIB) $(TARGET_SO) *.o core core.*
diff --git a/src/fieldstat.cpp b/src/fieldstat.cpp
index 582efaa..0ad0e67 100644
--- a/src/fieldstat.cpp
+++ b/src/fieldstat.cpp
@@ -526,6 +526,7 @@ void fieldstat_instance_start(struct fieldstat_instance *instance)
if(instance->background_thread_disable == 0)
{
pthread_create(&(instance->background_thread), NULL, fieldstat_thread_schema_output, (void*)instance);
+ instance->background_thread_is_created = 1;
}
//append instance to prometheus output
}