forked from weaselab/conflict-set
Make metrics thread-safe
Even concurrently with calling non-const methods on the associated ConflictSet
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ int main(int argc, const char **argv) {
|
||||
printf("# HELP %s %s\n", metrics[i].name, metrics[i].help);
|
||||
printf("# TYPE %s %s\n", metrics[i].name,
|
||||
metrics[i].type == metrics[i].Counter ? "counter" : "gauge");
|
||||
printf("%s %g\n", metrics[i].name, *metrics[i].value);
|
||||
printf("%s %g\n", metrics[i].name, metrics[i].getValue());
|
||||
}
|
||||
|
||||
printf("Check: %g seconds, %g MB/s, Add: %g seconds, %g MB/s, Gc ratio: "
|
||||
|
||||
Reference in New Issue
Block a user