|
From: <do...@hy...> - 2007-03-24 22:57:40
|
Author: dougm Date: 2007-03-24 14:57:36 -0800 (Sat, 24 Mar 2007) New Revision: 3871 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3871 Modified: trunk/plugins/system/src/org/hyperic/hq/plugin/system/ProcessData.java Log: try both file seps Modified: trunk/plugins/system/src/org/hyperic/hq/plugin/system/ProcessData.java =================================================================== --- trunk/plugins/system/src/org/hyperic/hq/plugin/system/ProcessData.java 2007-03-24 22:49:27 UTC (rev 3870) +++ trunk/plugins/system/src/org/hyperic/hq/plugin/system/ProcessData.java 2007-03-24 22:57:36 UTC (rev 3871) @@ -25,7 +25,6 @@ //XXX move this class to sigar package org.hyperic.hq.plugin.system; -import java.io.File; import java.text.SimpleDateFormat; import java.util.Date; @@ -178,8 +177,11 @@ } public String getBaseName() { - int ix = _name.lastIndexOf(File.separator); + int ix = _name.lastIndexOf("/"); if (ix == -1) { + ix = _name.lastIndexOf("\\"); + } + if (ix == -1) { return _name; } else { |