From f2e109f6f067e98ef97441c59db3cfdce3f44d26 Mon Sep 17 00:00:00 2001 From: Kerry Liu Date: Sat, 24 Jun 2017 22:02:56 -0400 Subject: [PATCH] quick max value tweak --- src/device.cpp | 2 +- src/graph.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device.cpp b/src/device.cpp index 3c29875..9c63919 100644 --- a/src/device.cpp +++ b/src/device.cpp @@ -14,7 +14,7 @@ const vector Device::sensor_types_paths({"/in", "/fan", "/pwm", "/temp"}); const vector Device::sensor_types_icons( {"assets/in.svg", "assets/fan.svg", "assets/pwm.svg", "assets/temp.svg"}); -const vector Device::sensor_max_vals({10000, 3000, 10, 100000}); +const vector Device::sensor_max_vals({5000, 2500, 5, 100000}); const vector Device::sensor_units({" V", " RPM", " V", " \u2103"}); Device::Device(string file_path) diff --git a/src/graph.cpp b/src/graph.cpp index 72dd38c..4d915f4 100644 --- a/src/graph.cpp +++ b/src/graph.cpp @@ -124,7 +124,7 @@ void Graph::draw_graph_grid(const Cairo::RefPtr &cr) { } // Horizontal scale lines: - const unsigned int hor_line_count = 6; + const unsigned int hor_line_count = ticks / 10; const double hor_line_spacing = (double)graph_width / hor_line_count; for (unsigned int i = 1; i < hor_line_count; i++) { cr->move_to(0.5 + graph_x_start + round(hor_line_spacing * i),