Skip to content

Commit

Permalink
quick max value tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerryliu committed Jun 25, 2017
1 parent 0614f60 commit f2e109f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const vector<string> Device::sensor_types_paths({"/in", "/fan", "/pwm",
"/temp"});
const vector<string> Device::sensor_types_icons(
{"assets/in.svg", "assets/fan.svg", "assets/pwm.svg", "assets/temp.svg"});
const vector<unsigned int> Device::sensor_max_vals({10000, 3000, 10, 100000});
const vector<unsigned int> Device::sensor_max_vals({5000, 2500, 5, 100000});
const vector<string> Device::sensor_units({" V", " RPM", " V", " \u2103"});

Device::Device(string file_path)
Expand Down
2 changes: 1 addition & 1 deletion src/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void Graph::draw_graph_grid(const Cairo::RefPtr<Cairo::Context> &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),
Expand Down

0 comments on commit f2e109f

Please sign in to comment.