Skip to content

Commit 20f5d68

Browse files
committed
fix uptime filter (ydb-platform#9752)
1 parent 501a283 commit 20f5d68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/core/viewer/viewer_nodes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,10 +954,10 @@ class TJsonNodes : public TViewerPipeClient {
954954
InvalidateNodes();
955955
}
956956
if (UptimeSeconds > 0 && FieldsAvailable.test(+ENodeFields::SystemState)) {
957-
ui64 limitSeconds = TInstant::Now().Seconds() - UptimeSeconds;
957+
ui64 limitMilliSeconds = TInstant::Now().MilliSeconds() - UptimeSeconds * 1000;
958958
TNodeView nodeView;
959959
for (TNode* node : NodeView) {
960-
if (node->SystemState.GetStartTime() >= limitSeconds) {
960+
if (node->SystemState.GetStartTime() >= limitMilliSeconds) {
961961
nodeView.push_back(node);
962962
}
963963
}

0 commit comments

Comments
 (0)