Commit ae456d37 authored by Loic Hausammann's avatar Loic Hausammann
Browse files

format

parent 387ab0e4
...@@ -183,8 +183,7 @@ void scheduler_write_dependencies(struct scheduler *s, int verbose) { ...@@ -183,8 +183,7 @@ void scheduler_write_dependencies(struct scheduler *s, int verbose) {
struct stat st = {0}; struct stat st = {0};
if (stat(dir_name, &st) == -1) { if (stat(dir_name, &st) == -1) {
int test = mkdir(dir_name, 0700); int test = mkdir(dir_name, 0700);
if (test != 0) if (test != 0) error("Failed to create the task dependencies directory");
error("Failed to create the task dependencies directory");
} }
} }
...@@ -198,8 +197,7 @@ void scheduler_write_dependencies(struct scheduler *s, int verbose) { ...@@ -198,8 +197,7 @@ void scheduler_write_dependencies(struct scheduler *s, int verbose) {
/* Create file */ /* Create file */
char filename[200]; char filename[200];
sprintf(filename, "%s/dependency_graph_%04i.csv", sprintf(filename, "%s/dependency_graph_%04i.csv", dir_name, s->nodeID);
dir_name, s->nodeID);
FILE *f = fopen(filename, "w"); FILE *f = fopen(filename, "w");
if (f == NULL) error("Error opening dependency graph file."); if (f == NULL) error("Error opening dependency graph file.");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment