Minor fix to new bandwidth graph.

This commit is contained in:
Karsten Loesing 2011-04-26 14:58:27 +02:00
parent 0189c89658
commit 62f3296f75

View File

@ -604,7 +604,7 @@ $$ LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION refresh_bwhist_flags() RETURNS INTEGER AS $$
BEGIN
DELETE FROM bwhist_flags WHERE date IN (SELECT date FROM updates);
INSERT INTO bwhist_flags (date, isexit, isguard, read_write_avg)
INSERT INTO bwhist_flags (date, isexit, isguard, read, written)
SELECT a.date, isexit, isguard, SUM(read_sum) as read,
SUM(written_sum) AS written
FROM