Fix bug in buffer, new stuff for TS #16 5.5h

This commit is contained in:
Erik Zandvliet 2012-03-12 15:47:29 +01:00
parent 05364aad2e
commit c63e018105
3 changed files with 38 additions and 38 deletions

View file

@ -211,7 +211,9 @@ namespace Buffer{
Storage["totals"]["up"] = tot_up;
Storage["totals"]["count"] = tot_count;
Storage["totals"]["now"] = now;
Storage["totals"]["buffer"] = argv[2];
if( argc >= 4 ) {
Storage["totals"]["buffer"] = argv[2];
}
if (!StatsSocket.connected()){
StatsSocket = Socket::Connection("/tmp/ddv_statistics", true);
}