Skip to content

Change semantics of the non-linear time-scale mode

Ghost User requested to merge (removed):exp into master

This patch changes the semantics of the non-linear mode from scaling the y-axis (CPU load) to scaling the x-axis (time). This enables the cpugraph plugin to display CPU load history up to 16 hours into the past using a width of just 128 pixels in case the update interval is 3 seconds.

Display width Update interval (seconds) Linear range Non-linear range
128 3 6m 16h
60 3 3m 31m
128 0.25 32s 80m
60 0.25 15s 2.6m

The implementation uses an exponential function with base 1.04.

The behavior of scaling the y-axis (CPU load) according to how far it is in the past can be restored in a future patch upon request.

Closes: #18 (closed)

Closes: #19 (closed)

Closes: #20 (closed)

Merge request reports