Skip to content

Conversation

@yoavnir
Copy link
Owner

@yoavnir yoavnir commented Nov 12, 2024

No description provided.

@yoavnir
Copy link
Owner Author

yoavnir commented Nov 14, 2024

Make it more pretty:

$ git diff
diff --git a/specs/src/specitems/specItems.cc b/specs/src/specitems/specItems.cc
index 0789420..e2029c9 100644
--- a/specs/src/specitems/specItems.cc
+++ b/specs/src/specitems/specItems.cc
@@ -591,7 +591,9 @@ void itemGroup::process(StringBuilder& sb, ProcessingState& pState, Reader& rd,

                if (g_bShowProgress && (time(nullptr)!=progressTick)) {
                        progressTick = time(nullptr);
-                       std::cerr << "\n\tspecs: Read " << pState.getRecordCount() << " records.\n";
+            auto pv = mkValue(pState.getRecordCount());
+            auto pvs = AluFunc_pretty(pv, nullptr, nullptr, nullptr);
+                       std::cerr << "\n\tspecs: Read " << pvs->getStr() << " records.\n";
                }

                if (processDo(sb,pState, &rd, tmr, readerCounter)) {

@yoavnir yoavnir merged commit 08265e6 into dev-0.9.5 Nov 15, 2024
1 check passed
@yoavnir yoavnir deleted the dev-0.9.5-issue267 branch November 15, 2024 17:35
yoavnir added a commit that referenced this pull request Dec 3, 2024
* Prepare for 0.9.5 GA

* Issue #265 - Harmonize success message of tests (#266)

* Issue #267 - Add a "progress bar"  to specs using --progress switch (#268)

* Issue #267 - Add a "progress bar"  to specs using --progress switch

* Issue #267 - Make the output more readable using the pretty() function

* Issue #269 - Support the RECNO token (#270)

* Issue #269 - Support the RECNO token

* Issue #269 - update the help to include this
yoavnir added a commit that referenced this pull request Dec 25, 2024
)

* Issue #267 - Add a "progress bar"  to specs using --progress switch

* Issue #267 - Make the output more readable using the pretty() function
yoavnir added a commit that referenced this pull request Dec 31, 2024
* Prepare for 0.9.5 GA

* Issue #265 - Harmonize success message of tests (#266)

* Issue #267 - Add a "progress bar"  to specs using --progress switch (#268)

* Issue #267 - Add a "progress bar"  to specs using --progress switch

* Issue #267 - Make the output more readable using the pretty() function

* Issue #269 - Support the RECNO token (#270)

* Issue #269 - Support the RECNO token

* Issue #269 - update the help to include this
yoavnir added a commit that referenced this pull request Dec 31, 2024
)

* Issue #267 - Add a "progress bar"  to specs using --progress switch

* Issue #267 - Make the output more readable using the pretty() function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants