mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Make Chart::render return a string instead of writing to std::cout (fixup)
This commit is contained in:
parent
8e649a9456
commit
22902fe9a1
1 changed files with 4 additions and 4 deletions
|
@ -363,10 +363,10 @@ std::string Chart::renderTotal (time_t work)
|
||||||
{
|
{
|
||||||
int hours = work / 3600;
|
int hours = work / 3600;
|
||||||
int minutes = (work % 3600) / 60;
|
int minutes = (work % 3600) / 60;
|
||||||
std::cout << " "
|
out << " "
|
||||||
<< std::setw (3) << std::setfill (' ') << hours
|
<< std::setw (3) << std::setfill (' ') << hours
|
||||||
<< ':'
|
<< ':'
|
||||||
<< std::setw (2) << std::setfill ('0') << minutes;
|
<< std::setw (2) << std::setfill ('0') << minutes;
|
||||||
}
|
}
|
||||||
|
|
||||||
return out.str ();
|
return out.str ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue