analyze: correctly draw the plot for user instances
authorIvan Shapovalov <intelfx100@gmail.com>
Mon, 27 Jul 2015 16:40:36 +0000 (19:40 +0300)
committerIvan Shapovalov <intelfx100@gmail.com>
Mon, 27 Jul 2015 22:16:24 +0000 (01:16 +0300)
commit06bef033becc75da95eee9b5fff3b0d5664195e2
treeaac198a2c362825e30c969af54898c06362762e6
parent29b8b5ce87017150cb57425eca6e906a8f9fc243
analyze: correctly draw the plot for user instances

Start-up timestamp of a user instance (userspace_time in struct boot_times)
actually may be arbitrarily big. This, because all timestamps are offset by
that value, leads to creation of arbitrarily wide SVGs which almost completely
consist of blank space.

Fix this by inverse-offsetting all timestamps by that value if user instance
operation is requested.

Fixes #740.
src/analyze/analyze.c