Changeset 42974
- Timestamp:
- Mar 20, 2026, 1:10:08 PM (7 weeks ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_server_status (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_server_status
r42049 r42974 164 164 if ($workdir) { 165 165 # get the space available in the working directory file system 166 my $df_output = `df -h $workdir`; 167 my @lines = split "\n", $df_output; 168 foreach my $line (@lines) { 169 next unless $line =~ /data/; 170 my ($total, $used, $free, $percent, $part) = split " ", $line; 171 print "<br><b>Server Working Directory:</b> $percent full. $free free out of $total total.<br>\n"; 172 } 166 ## df can stall with NFS issues, need to code better, but not really used anymore so comment out for now 167 print "<br>Server Working Directory -- status missing/broken for while and can have NFS issues, removed in pstamp_server_status <br>\n"; 168 #my $df_output = `df -h $workdir`; 169 #my @lines = split "\n", $df_output; 170 #foreach my $line (@lines) { 171 # next unless $line =~ /data/; 172 # my ($total, $used, $free, $percent, $part) = split " ", $line; 173 # print "<br><b>Server Working Directory:</b> $percent full. $free free out of $total total.<br>\n"; 174 #} 173 175 174 176 }
Note:
See TracChangeset
for help on using the changeset viewer.
