--- trunk/tntnet/dynamic/temperaturegraph.ecpp 2007/12/06 14:12:36 177 +++ trunk/tntnet/dynamic/temperaturegraph.ecpp 2007/12/08 19:19:07 196 @@ -51,7 +51,7 @@ ///////////////////////////////////////////////// -tntdb::Connection conn = tntdb::connect(dburl); +tntdb::Connection conn = tntdb::connectCached(dburl); std::stringstream query; query << "SELECT temperature FROM ( "; @@ -86,7 +86,7 @@ // echo the image to the browser... reply.setContentType("image/png"); int size; -unsigned char* ptr = (unsigned char*) image.Png(&size); +unsigned char* ptr = (unsigned char*) image.Png(&size,1); for (int i=0; i