From db0949e652020f818fdcee341560552ac17baa36 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Fri, 26 Apr 2013 17:35:41 -0400 Subject: [PATCH] tweaked stat output --- openbr/plugins/gallery.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index 8eee3bd..30852f9 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -841,6 +841,7 @@ BR_REGISTER(Gallery, googleGallery) class statGallery : public Gallery { Q_OBJECT + QSet subjects; QList bytes; ~statGallery() @@ -854,7 +855,8 @@ class statGallery : public Gallery double bytesMean, bytesStdDev; Common::MeanStdDev(bytes, &bytesMean, &bytesStdDev); - printf("Empty Templates: %d/%d\nBytes/Template: %.4g +/- %.4g\n", emptyTemplates, emptyTemplates+bytes.size(), bytesMean, bytesStdDev); + printf("Subjects: %d\nEmpty Templates: %d/%d\nBytes/Template: %.4g +/- %.4g\n", + subjects.size(), emptyTemplates, emptyTemplates+bytes.size(), bytesMean, bytesStdDev); } TemplateList readBlock(bool *done) @@ -865,6 +867,7 @@ class statGallery : public Gallery void write(const Template &t) { + subjects.insert(t.file.subject()); bytes.append(t.bytes()); } }; -- libgit2 0.21.4