From b7e58c8f9c96417d2530be21bd00662b343d6bcd Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 10 Nov 2011 23:07:57 +0100 Subject: some more reporting in hstreaming, keep weights option --- dtrain/dtrain.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'dtrain/dtrain.h') diff --git a/dtrain/dtrain.h b/dtrain/dtrain.h index 6c9decf4..6742f343 100644 --- a/dtrain/dtrain.h +++ b/dtrain/dtrain.h @@ -30,17 +30,13 @@ inline void register_and_convert(const vector& strs, vector& ids ids.push_back(TD::Convert(*it)); } -inline string gettmpf(const string path, const string infix, const string suffix="") { +inline string gettmpf(const string path, const string infix) { char fn[1024]; strcpy(fn, path.c_str()); strcat(fn, "/"); strcat(fn, infix.c_str()); strcat(fn, "-XXXXXX"); mkstemp(fn); - if (suffix != "") { // we will get 2 files - strcat(fn, "."); - strcat(fn, suffix.c_str()); - } return string(fn); } -- cgit v1.2.3