summaryrefslogtreecommitdiff
path: root/src/trg-torrent-graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trg-torrent-graph.c')
-rw-r--r--src/trg-torrent-graph.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/trg-torrent-graph.c b/src/trg-torrent-graph.c
index b5ce339..c5e4d4b 100644
--- a/src/trg-torrent-graph.c
+++ b/src/trg-torrent-graph.c
@@ -17,7 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-/* This graph drawing code was taken from gnome-system-monitor (load-graph.cpp)
+/*
+ * This graph drawing code was taken from gnome-system-monitor (load-graph.cpp)
* Converted the class from C++ to GObject, substituted out some STL (C++)
* functions, and removed the unecessary parts for memory/cpu.
*/
@@ -61,7 +62,7 @@ struct _TrgTorrentGraphPrivate {
double graph_delx;
guint graph_buffer_offset;
- GdkColor colors[2];
+ GdkColor colors[GRAPH_NUM_LINES];
float data_block[GRAPH_NUM_POINTS * GRAPH_NUM_LINES];
GList *points;