Ronny Seffner <[email protected]> wrote:
> Wenn ich nun verschiedene Stellen nach dem Trafficaufkommen befrage, erhalte
> ich leider zu unterschiedliche Angaben:
> 
> [...]
> ns1:/tmp# sudo -u postgres psql -d pmacct -c "SELECT SUM(bytes) FROM acct
> WHERE stamp_updated >= '2014-12-23 00:00:00' AND stamp_updated <=
> '2014-12-23 01:00:00'"

Gemäß http://www.nwlab.net/tutorials/pmacctd/pmacct.html hat die Tabelle
neben stamp_updated auch noch stamp_inserted. Ich weiß nicht, wann
stamp_updated gesetzt wird und auch nicht auf was, vermute aber, Du
solltest eher auf stamp_inserted aggregieren.


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

_______________________________________________
Lug-dd maillist  -  [email protected]
https://ssl.schlittermann.de/mailman/listinfo/lug-dd

Antwort per Email an