From 0a5ac0452ddc7fa4fb4fd5e900ed3cd8004d7a96 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Thu, 21 Apr 2016 05:02:18 +0000 Subject: [PATCH] timescale appearance improved --- src/page.h | 2 +- src/tools.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/page.h b/src/page.h index a4652ff..c6d56d6 100644 --- a/src/page.h +++ b/src/page.h @@ -654,7 +654,7 @@ namespace xmreg { // get mixins in time scale for visual representation pair mixin_times_scale = xmreg::timestamps_time_scale( mixin_timestamps, - server_timestamp, 140); + server_timestamp, 130); // add beginning and end to the mixin_times_scale string timescale_str = string("|") diff --git a/src/tools.cpp b/src/tools.cpp index d7ac88c..6e0345b 100644 --- a/src/tools.cpp +++ b/src/tools.cpp @@ -548,7 +548,8 @@ namespace xmreg continue; } - uint64_t timestamp_place = double(timestamp-time0)/double(interval_length)*(time_axis_length-1); + uint64_t timestamp_place = double(timestamp-time0) + / double(interval_length)*(time_axis_length-1); //cout << timestamp_place << endl; empty_time[timestamp_place + 1] = '*'; }