Skip to content

Commit

Permalink
removes the word rows from ds.print and the interface of dsquery.limit
Browse files Browse the repository at this point in the history
  • Loading branch information
tremblap committed Oct 9, 2024
1 parent 9d73af6 commit 0f32bb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/clients/nrt/DataSetQueryClient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ class DataSetQueryClient : public FluidBaseClient, OfflineIn, OfflineOut
return OK();
}

MessageResult<void> limit(index rows)
MessageResult<void> limit(index points)
{
if (rows <= 0) return Error("invalid value");
mAlgorithm.limit(rows);
if (points <= 0) return Error("invalid limit on the number of points");
mAlgorithm.limit(points);
return OK();
}

Expand Down
2 changes: 1 addition & 1 deletion include/data/FluidDataSet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class FluidDataSet
using namespace std;
if (size() == 0) return "{}";
ostringstream result;
result << endl << "rows: " << size() << " cols: " << pointSize() << endl;
result << endl << size() << " points of " << pointSize() << " cols." << endl;
if (size() < maxRows)
{
for (index r = 0; r < size(); r++)
Expand Down

0 comments on commit 0f32bb4

Please sign in to comment.