prettier day of week
This commit is contained in:
5
main.cpp
5
main.cpp
@@ -80,7 +80,8 @@ std::string getAvgs() {
|
||||
|
||||
std::array<std::string, 2> getTimeDate() {
|
||||
std::array months = {"sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paz", "lis", "gru"};
|
||||
std::array wdays = {"nie", "pon", "wto", "sro", "czw", "pia", "sob"};
|
||||
std::array wdays = {"Nie", "Pon", "Wto", "Sro", "Czw", "Pia", "Sob"};
|
||||
// std::array wdays = {"Ni", "Pn", "Wt", "Sr", "Cz", "Pi", "So"};
|
||||
auto now = std::time(nullptr);
|
||||
auto tm = *std::localtime(&now);
|
||||
std::stringstream time, date;
|
||||
@@ -193,7 +194,7 @@ int main(int argc, char *argv[]) {
|
||||
auto gpu = getGpu(gpu_mtr_rev, gpu_hwmon);
|
||||
auto cpu = getCpuTemp(cpu_hwmon);
|
||||
|
||||
lines[0] = td[1] + " " + td[0] + lcd.bar(1, gpu.core_usage / 100.0) + pad(getAvgs(), 17);
|
||||
lines[0] = pad(td[1], 11, true) + " " + td[0] + lcd.bar(1, gpu.core_usage / 100.0) + pad(getAvgs(), 17);
|
||||
|
||||
lines[1] = pad(pNum(cpu.tctl) + "/" + pNum(cpu.tccd1) + lcd.cc[0], 8, true);
|
||||
lines[1] += pad(pBytes(ram.used, true) + "B", 7, true);
|
||||
|
||||
Reference in New Issue
Block a user