diff options
| author | hwspeedy <ns@bigbear.dk> | 2024-04-15 14:55:24 +0200 | 
|---|---|---|
| committer | hwspeedy <ns@bigbear.dk> | 2024-04-15 14:55:24 +0200 | 
| commit | 58c00fd81ce1824037749ab0e900024811dc9f31 (patch) | |
| tree | aa83ad1a327ec62b0042c06cf82a8f817f4bb136 /modules | |
| parent | 7dc3d5c3d0c3738d216b9b23b65f76e167f61b6e (diff) | |
FIX Beautify JSON usernote
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/benchmark.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/modules/benchmark.c b/modules/benchmark.c index f60bb8c7..f4629866 100644 --- a/modules/benchmark.c +++ b/modules/benchmark.c @@ -823,7 +823,11 @@ static gchar *get_benchmark_results(gsize *len)          ADD_JSON_VALUE(string, "LinuxOS", this_machine->linux_os);          ADD_JSON_VALUE(boolean, "Legacy", FALSE);          ADD_JSON_VALUE(string, "ExtraInfo", bench_results[i].extra); -        ADD_JSON_VALUE(string, "UserNote", params.bench_user_note);	 +	if(params.bench_user_note){ +            ADD_JSON_VALUE(string, "UserNote", params.bench_user_note); +	}else{ +            ADD_JSON_VALUE(string, "UserNote", ""); +	}          ADD_JSON_VALUE(double, "BenchmarkResult", bench_results[i].result);          ADD_JSON_VALUE(double, "ElapsedTime", bench_results[i].elapsed_time);          ADD_JSON_VALUE(int, "UsedThreads", bench_results[i].threads_used); | 
