this added output of global stats to stdout

This commit is contained in:
Marcel Nowicki
2022-02-12 01:40:57 +01:00
parent 0b0759271a
commit b3888cdab7
3 changed files with 50 additions and 22 deletions

View File

@@ -7,6 +7,7 @@
#include <map>
#include <string>
#include "tarconst.h"
#include <vector>
#ifndef TARSTATS___TARFUNC_H
@@ -30,6 +31,10 @@ namespace tar {
// to write stats to console in default style
void consolestats(std::map<std::string, uintmax_t> &typecount, uintmax_t tarfilesize, uintmax_t sizeofall);
// to write global stats to stdout
void consoleglobalstats (std::map<std::string, uintmax_t> &typecount, uintmax_t itemfilesize,
uintmax_t szfiles, std::vector<std::string> &files);
// to write default console output to txt file
void txtfilestats(std::map<std::string, uintmax_t> &typecount, uintmax_t tarfilesize, uintmax_t sizeofall,
std::string archiveName);