SOLR-3311: fix dashboard view on windows

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1309485 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2012-04-04 16:35:52 +00:00
parent 3ecf4cd268
commit 083829171a
1 changed files with 5 additions and 5 deletions

View File

@ -99,7 +99,7 @@ var system_info = function( element, system_data )
{
// -- usage
var load_average = system_data['system']['uptime'].match( /load average: (.+)/ );
var load_average = ( system_data['system']['uptime'] || '' ).match( /load average: (.+)/ );
if( load_average && load_average[1] )
{
var hl = $( '#system h2', element );
@ -239,10 +239,10 @@ sammy.get
'dir_index' : app.dashboard_values['core']['directory']['index'],
'jvm_version' : app.dashboard_values['jvm']['name'] + ' (' + app.dashboard_values['jvm']['version'] + ')',
'processors' : app.dashboard_values['jvm']['processors'],
'solr_spec_version' : app.dashboard_values['lucene']['solr-spec-version'],
'solr_impl_version' : app.dashboard_values['lucene']['solr-impl-version'],
'lucene_spec_version' : app.dashboard_values['lucene']['lucene-spec-version'],
'lucene_impl_version' : app.dashboard_values['lucene']['lucene-impl-version']
'solr_spec_version' : app.dashboard_values['lucene']['solr-spec-version'] || '-',
'solr_impl_version' : app.dashboard_values['lucene']['solr-impl-version'] || '-',
'lucene_spec_version' : app.dashboard_values['lucene']['lucene-spec-version'] || '-',
'lucene_impl_version' : app.dashboard_values['lucene']['lucene-impl-version'] || '-'
};
if( app.dashboard_values['core']['directory']['cwd'] )