Commit db0949e652020f818fdcee341560552ac17baa36
1 parent
99e31d42
tweaked stat output
Showing
1 changed file
with
4 additions
and
1 deletions
openbr/plugins/gallery.cpp
| ... | ... | @@ -841,6 +841,7 @@ BR_REGISTER(Gallery, googleGallery) |
| 841 | 841 | class statGallery : public Gallery |
| 842 | 842 | { |
| 843 | 843 | Q_OBJECT |
| 844 | + QSet<QString> subjects; | |
| 844 | 845 | QList<int> bytes; |
| 845 | 846 | |
| 846 | 847 | ~statGallery() |
| ... | ... | @@ -854,7 +855,8 @@ class statGallery : public Gallery |
| 854 | 855 | |
| 855 | 856 | double bytesMean, bytesStdDev; |
| 856 | 857 | Common::MeanStdDev(bytes, &bytesMean, &bytesStdDev); |
| 857 | - printf("Empty Templates: %d/%d\nBytes/Template: %.4g +/- %.4g\n", emptyTemplates, emptyTemplates+bytes.size(), bytesMean, bytesStdDev); | |
| 858 | + printf("Subjects: %d\nEmpty Templates: %d/%d\nBytes/Template: %.4g +/- %.4g\n", | |
| 859 | + subjects.size(), emptyTemplates, emptyTemplates+bytes.size(), bytesMean, bytesStdDev); | |
| 858 | 860 | } |
| 859 | 861 | |
| 860 | 862 | TemplateList readBlock(bool *done) |
| ... | ... | @@ -865,6 +867,7 @@ class statGallery : public Gallery |
| 865 | 867 | |
| 866 | 868 | void write(const Template &t) |
| 867 | 869 | { |
| 870 | + subjects.insert(t.file.subject()); | |
| 868 | 871 | bytes.append(t.bytes()); |
| 869 | 872 | } |
| 870 | 873 | }; | ... | ... |