summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/profile.c b/profile.c
index 6a20dce24..f947b9d59 100644
--- a/profile.c
+++ b/profile.c
@@ -1538,6 +1538,20 @@ void get_plot_details(struct graphics_context *gc, int time, char *buf, int bufs
plot_string(entry, buf, bufsize, pi->has_ndl);
}
+void get_plot_details_new(struct plot_info *pi, int time, char *buf, int bufsize)
+{
+ struct plot_data *entry = NULL;
+ int i;
+
+ for (i = 0; i < pi->nr; i++) {
+ entry = pi->entry + i;
+ if (entry->sec >= time)
+ break;
+ }
+ if (entry)
+ plot_string(entry, buf, bufsize, pi->has_ndl);
+}
+
/* Compare two plot_data entries and writes the results into a string */
void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int bufsize, int sum)
{