kopia lustrzana https://gitlab.com/tomaszg/geostat
Add histogram for years
rodzic
4c9995dccf
commit
ccf2ec1f28
|
@ -312,7 +312,8 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
|
||||
if ((show_calendar || show_html) && !get_not_found) {
|
||||
show_histogram(&cc, &Cache::mon, "Month", show_html, 0);
|
||||
show_histogram(&cc, &Cache::mon, "Months", show_html, 0);
|
||||
show_histogram(&cc, &Cache::year, "Years", show_html, 0);
|
||||
}
|
||||
|
||||
if (show_dt && !get_not_found) {
|
||||
|
|
|
@ -136,7 +136,7 @@ Caches Okapi::get_caches(std::vector<std::pair<std::string, std::tm>> codes) {
|
|||
for (auto& el2 : codes) {
|
||||
if (el2.first == c.code) {
|
||||
c.date_found = el2.second;
|
||||
c.year = std::to_string(el2.second.tm_year);
|
||||
c.year = std::to_string(1900+el2.second.tm_year);
|
||||
std::strftime(month, 20, "(%m) %B", &el2.second);
|
||||
c.mon = month;
|
||||
c.day = std::to_string(el2.second.tm_mday);
|
||||
|
|
Ładowanie…
Reference in New Issue